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>
This commit is contained in:
parent
2e7cfd8f27
commit
239bd4a8ce
1 changed files with 3 additions and 1 deletions
|
@ -1,9 +1,11 @@
|
|||
# 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)"
|
||||
depends on SOC_SERIES_STM32H7X
|
||||
default $(dt_compat_enabled,$(DT_COMPAT_ST_STM32_FMC))
|
||||
help
|
||||
Enable STM32 Flexible Memory Controller.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue