From 910ec595a05576d1fd639d060d309d0c0275d825 Mon Sep 17 00:00:00 2001 From: Fabian Blatz Date: Sun, 5 Jan 2025 18:03:21 +0100 Subject: [PATCH] boards: stm32h7b3i_dk: Move LV_DRAW_DMA2D_HAL_INCLUDE to the soc Moves the LV_DRAW_DMA2D_HAL_INCLUDE to the soc instead of the development kit since the hal include is the same across all boards using the soc. Signed-off-by: Fabian Blatz --- boards/st/stm32h7b3i_dk/Kconfig.defconfig | 3 --- soc/st/stm32/stm32h7x/Kconfig.defconfig | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/boards/st/stm32h7b3i_dk/Kconfig.defconfig b/boards/st/stm32h7b3i_dk/Kconfig.defconfig index 37932189b7cbac..12fed0b4c44746 100644 --- a/boards/st/stm32h7b3i_dk/Kconfig.defconfig +++ b/boards/st/stm32h7b3i_dk/Kconfig.defconfig @@ -25,9 +25,6 @@ config CACHE_MANAGEMENT config LV_USE_DRAW_DMA2D default y -config LV_DRAW_DMA2D_HAL_INCLUDE - default "stm32h7xx.h" - config STM32_LTDC_FB_NUM default 2 diff --git a/soc/st/stm32/stm32h7x/Kconfig.defconfig b/soc/st/stm32/stm32h7x/Kconfig.defconfig index 790b1659c05140..5c9ca2c97721e2 100644 --- a/soc/st/stm32/stm32h7x/Kconfig.defconfig +++ b/soc/st/stm32/stm32h7x/Kconfig.defconfig @@ -14,4 +14,11 @@ config ROM_START_OFFSET default 0x400 if BOOTLOADER_MCUBOOT default 0x0 if !BOOTLOADER_MCUBOOT +if LVGL + +config LV_DRAW_DMA2D_HAL_INCLUDE + default "stm32h7xx.h" + +endif # LVGL + endif # SOC_SERIES_STM32H7X