Skip to content

Commit

Permalink
arch/Kconfig: allow FLASH config for non-MMU chips
Browse files Browse the repository at this point in the history
This allows using FLASH_START and FLASH_SIZE config for chips with
no MMU.

Signed-off-by: Yanfeng Liu <[email protected]>
  • Loading branch information
Yanfeng Liu authored and anchao committed Jan 17, 2025
1 parent 1e2c002 commit 8f435a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1397,7 +1397,7 @@ config RAM_SIZE
does not execute out of RAM but from FLASH, then you may designate
any block of RAM as "primary."

if BOOT_RUNFROMFLASH && ARCH_USE_MMU
if BOOT_RUNFROMFLASH

config FLASH_START
hex "Boot FLASH start address (physical)"
Expand All @@ -1409,6 +1409,7 @@ config FLASH_START
config FLASH_VSTART
hex "Boot FLASH start address (virtual)"
default 0x0
depends on ARCH_USE_MMU
---help---
The virtual start address of installed boot FLASH. "Boot" FLASH
refers to the FLASH that you link program code into.
Expand All @@ -1420,7 +1421,7 @@ config FLASH_SIZE
The size in bytes of the installed boot FLASH. "Boot" FLASH
refers to the FLASH that you link program code into.

endif # BOOT_RUNFROMFLASH && ARCH_USE_MMU
endif # BOOT_RUNFROMFLASH

config ARCH_HAVE_SDRAM
bool
Expand Down

0 comments on commit 8f435a2

Please sign in to comment.