Skip to content

Commit

Permalink
drivers: flash: stm32: move memmap config
Browse files Browse the repository at this point in the history
Move STM32_MEMMAP outside of SOC_FLASH_STM32.

That allows memory-mapped application to
be built without internal flash controller.

Signed-off-by: Georgij Cernysiov <[email protected]>
  • Loading branch information
GeorgeCGV committed Jun 6, 2024
1 parent c250c33 commit 9b9c33c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions drivers/flash/Kconfig.stm32
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
# Copyright (c) 2023 Google Inc
# 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)
help
This option enables the XIP mode for the external NOR flash
mounted on STM32 boards.

config SOC_FLASH_STM32
bool "STM32 flash driver"
depends on DT_HAS_ST_STM32_FLASH_CONTROLLER_ENABLED
Expand Down Expand Up @@ -73,11 +82,4 @@ config FLASH_STM32_BLOCK_REGISTERS
registers improves system security, because flash content (or
protection settings) can't be changed even when exploit was found.

config STM32_MEMMAP
bool "NOR Flash in MemoryMapped for XiP"
depends on XIP
help
This option enables the XIP mode for the external NOR flash
mounted on STM32 boards.

endif # SOC_FLASH_STM32

0 comments on commit 9b9c33c

Please sign in to comment.