zephyr/drivers/memc
Miguel Gazquez 3408694960 drivers: memc: fix Kconfig option MEMC_STM32
This commit fixes a bug with the declaration of the Kconfig option
MEMC_STM32.

The option is defined in two files:
- `drivers/memc/Kconfig.stm32`, wich depends on
   - `MEMC`
   - `DT_HAS_ST_STM32_FMC_ENABLED`
-`soc/st/stm32/Kconfig.defconfig`, wich depends on
   - `MEMC`
   - `SOC_FAMILY_STM32`

So, if you have `CONFIG_MEMC=y` in your Kconfig options and you are on a
STM32 SoC, `CONFIG_MEMC_STM32` will be enabled, even if there is no
STM32 FMC enabled.

This Kconfig option causes the driver for the STM32 FMC to be compiled,
regardless of the presence of an enabled node for the FMC.
However, the driver fails to compile if there is no FMC node in the
devicetree. So, if you compile a project with `CONFIG_MEMC=y` on a board
with an STM32 SoC and no enabled FMC, the build will fail.

This commit deletes the Kconfig declaration in the `Kconfig.defconfig`,
as it isn't useful and is the one provoking the bug.
It also add in the `Kconfig.stm32` the compatible `st,stm32h7-fmc`, wich
use the same driver and so need to be enabled by the same Kconfig
option.

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2024-07-05 18:43:06 +02:00
..
CMakeLists.txt drivers: memc: Add APS6404L device driver 2024-06-14 21:07:00 -04:00
Kconfig drivers: memc: Add APS6404L device driver 2024-06-14 21:07:00 -04:00
Kconfig.mcux drivers: memc: memc_mcux_flexspi: support initializing FLEXSPI when XIP 2024-05-14 18:21:57 -04:00
Kconfig.mspi drivers: fix Kconfig.mspi for issue #74349 2024-06-18 19:55:35 -04:00
Kconfig.nxp_s32
Kconfig.sam
Kconfig.sifive
Kconfig.smartbond drivers: memc: smartbond: Add support for the memory driver class. 2024-05-23 07:51:41 -04:00
Kconfig.stm32 drivers: memc: fix Kconfig option MEMC_STM32 2024-07-05 18:43:06 +02:00
memc_mcux_flexspi.c drivers: memc: memc_mcux_flexspi: support initializing FLEXSPI when XIP 2024-05-14 18:21:57 -04:00
memc_mcux_flexspi.h drivers: memc: memc_mcux_flexspi: update documentation for flash_config 2024-05-14 18:21:57 -04:00
memc_mcux_flexspi_aps6408l.c drivers: memc: update interface of memc flexspi driver for multi device 2023-10-20 14:53:10 +02:00
memc_mcux_flexspi_is66wvq8m4.c drivers: memc: memc_mcux_flexspi_is66wvq8m4: do not reset FLEXSPI 2024-05-14 18:21:57 -04:00
memc_mcux_flexspi_s27ks0641.c drivers: memc: update interface of memc flexspi driver for multi device 2023-10-20 14:53:10 +02:00
memc_mcux_flexspi_w956a8mbya.c drivers: memc: update interface of memc flexspi driver for multi device 2023-10-20 14:53:10 +02:00
memc_mspi_aps6404l.c drivers: memc: Add APS6404L device driver 2024-06-14 21:07:00 -04:00
memc_nxp_flexram.c drivers: memc: Add NXP FlexRAM driver 2023-11-13 09:42:28 +01:00
memc_nxp_flexram.h drivers: memc: fix FlexRAM bank cfg issue 2024-04-10 11:28:32 -04:00
memc_nxp_s32_qspi.c treewide: Replace all uses of CONCAT with _CONCAT 2023-11-07 11:55:51 +01:00
memc_nxp_s32_qspi.h
memc_sam_smc.c
memc_smartbond_nor_psram.c drivers/smartbond: Fix PM device runtime support 2024-06-18 14:36:38 -04:00
memc_stm32.c drivers: memc: stm32 fmc add clock source select 2024-01-17 14:43:20 +01:00
memc_stm32_nor_psram.c
memc_stm32_sdram.c
memc_stm32_sdram.ld
sifive_ddr.c
sifive_ddrregs.h