zephyr/drivers/memc/Kconfig.stm32
Fabio Baltieri 239bd4a8ce drivers: stm32-fmc: enable MEMC_STM32 default based on dt
Default the option MEMC_STM32 to "y" when the device node is defined and
enabled, so that the driver is selected automatically when the board
supports it and MEMC is enabled.

Remove the default conditional on serise as it's redundant with the one
in soc/arm/st_stm32/common/Kconfig.defconfig.series.

Signed-off-by: Fabio Baltieri <fabio.baltieri@gmail.com>
2021-06-29 11:30:35 -04:00

22 lines
604 B
Plaintext

# Copyright (c) 2020 Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_ST_STM32_FMC := st,stm32-fmc
config MEMC_STM32
bool "Enable STM32 Flexible Memory Controller (FMC)"
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_FMC))
help
Enable STM32 Flexible Memory Controller.
DT_COMPAT_ST_STM32_FMC_SDRAM := st,stm32-fmc-sdram
config MEMC_STM32_SDRAM
bool "Enable STM32 FMC SDRAM controller"
depends on MEMC_STM32
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_FMC_SDRAM))
select USE_STM32_LL_FMC
select USE_STM32_HAL_SDRAM
help
Enable STM32 FMC SDRAM controller.