drivers: flash: stm32: remove dependeny on XIP for memory map
Remove XIP dependency for enabling memory mapping for Q/O/XSPI NOR Flash.
It is not necessary and is preventing configuring an external Flash in
memmap mode if there is no internal Flash (like on STM32N6)
Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
diff --git a/drivers/flash/Kconfig.stm32 b/drivers/flash/Kconfig.stm32
index c7c9bb1..caa2885 100644
--- a/drivers/flash/Kconfig.stm32
+++ b/drivers/flash/Kconfig.stm32
@@ -7,13 +7,12 @@
# SPDX-License-Identifier: Apache-2.0
config STM32_MEMMAP
- bool "NOR Flash in MemoryMapped for XiP"
- depends on XIP && \
- (DT_HAS_ST_STM32_OSPI_NOR_ENABLED || \
- DT_HAS_ST_STM32_QSPI_NOR_ENABLED || \
- DT_HAS_ST_STM32_XSPI_NOR_ENABLED)
+ bool "NOR Flash in MemoryMapped"
+ depends on DT_HAS_ST_STM32_QSPI_NOR_ENABLED || \
+ DT_HAS_ST_STM32_OSPI_NOR_ENABLED || \
+ DT_HAS_ST_STM32_XSPI_NOR_ENABLED
help
- This option enables the XIP mode for the external NOR flash
+ This option enables the MemoryMapped mode for the external NOR flash
mounted on STM32 boards.
menuconfig SOC_FLASH_STM32