1# Copyright (c) 2020 Teslabs Engineering S.L.
2# SPDX-License-Identifier: Apache-2.0
3
4config MEMC_STM32
5	bool "STM32 Flexible Memory Controller (FMC)"
6	default y
7	depends on DT_HAS_ST_STM32_FMC_ENABLED || DT_HAS_ST_STM32H7_FMC_ENABLED
8	select PINCTRL
9	help
10	  Enable STM32 Flexible Memory Controller.
11
12if MEMC_STM32
13
14config MEMC_STM32_SDRAM
15	bool "STM32 FMC SDRAM controller"
16	default y
17	depends on DT_HAS_ST_STM32_FMC_SDRAM_ENABLED
18	select USE_STM32_LL_FMC
19	select USE_STM32_HAL_SDRAM
20	help
21	  Enable STM32 FMC SDRAM controller.
22
23config MEMC_STM32_NOR_PSRAM
24	bool "STM32 FMC NOR/PSRAM controller"
25	default y
26	depends on DT_HAS_ST_STM32_FMC_NOR_PSRAM_ENABLED
27	select USE_STM32_LL_FMC
28	select USE_STM32_HAL_NOR
29	select USE_STM32_HAL_SRAM
30	help
31	  Enable STM32 FMC NOR/PSRAM controller.
32
33endif
34