diff --git a/drivers/memc/Kconfig.stm32 b/drivers/memc/Kconfig.stm32 index c7c973af5c0..e2dda2a99d5 100644 --- a/drivers/memc/Kconfig.stm32 +++ b/drivers/memc/Kconfig.stm32 @@ -4,7 +4,7 @@ config MEMC_STM32 bool "STM32 Flexible Memory Controller (FMC)" default y - depends on DT_HAS_ST_STM32_FMC_ENABLED + depends on DT_HAS_ST_STM32_FMC_ENABLED || DT_HAS_ST_STM32H7_FMC_ENABLED help Enable STM32 Flexible Memory Controller. diff --git a/soc/st/stm32/Kconfig.defconfig b/soc/st/stm32/Kconfig.defconfig index 64f6b817dd0..61ccc1fbf10 100644 --- a/soc/st/stm32/Kconfig.defconfig +++ b/soc/st/stm32/Kconfig.defconfig @@ -61,10 +61,6 @@ config PHY_INIT_PRIORITY default 81 depends on NET_L2_ETHERNET && ETH_DRIVER -config MEMC_STM32 - default y - depends on MEMC - # Get flash configuration for NS image from dts flash partition config USE_DT_CODE_PARTITION default y if TRUSTED_EXECUTION_NONSECURE