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:
Fabio Baltieri 2021-06-14 18:18:03 +01:00 committed by Anas Nashif
commit 239bd4a8ce

View file

@ -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.