diff --git a/boards/st/stm32h7b3i_dk/Kconfig.defconfig b/boards/st/stm32h7b3i_dk/Kconfig.defconfig index 37932189b7cb..12fed0b4c447 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 790b1659c051..5c9ca2c97721 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