zephyr/drivers/memc/Kconfig.stm32
Kumar Gala b2dacedbe8 drivers: memc: Update drivers to use devicetree Kconfig symbol
Update memc drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-25 15:14:08 +02:00

33 lines
742 B
Plaintext

# Copyright (c) 2020 Teslabs Engineering S.L.
# SPDX-License-Identifier: Apache-2.0
config MEMC_STM32
bool "STM32 Flexible Memory Controller (FMC)"
default y
depends on DT_HAS_ST_STM32_FMC_ENABLED
help
Enable STM32 Flexible Memory Controller.
if MEMC_STM32
config MEMC_STM32_SDRAM
bool "STM32 FMC SDRAM controller"
default y
depends on DT_HAS_ST_STM32_FMC_SDRAM_ENABLED
select USE_STM32_LL_FMC
select USE_STM32_HAL_SDRAM
help
Enable STM32 FMC SDRAM controller.
config MEMC_STM32_NOR_PSRAM
bool "STM32 FMC NOR/PSRAM controller"
default y
depends on DT_HAS_ST_STM32_FMC_NOR_PSRAM_ENABLED
select USE_STM32_LL_FMC
select USE_STM32_HAL_NOR
select USE_STM32_HAL_SRAM
help
Enable STM32 FMC NOR/PSRAM controller.
endif