Skip to content

Commit 8f435a2

Browse files
yf13anchao
authored andcommitted
arch/Kconfig: allow FLASH config for non-MMU chips
This allows using FLASH_START and FLASH_SIZE config for chips with no MMU. Signed-off-by: Yanfeng Liu <[email protected]>
1 parent 1e2c002 commit 8f435a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arch/Kconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ config RAM_SIZE
13971397
does not execute out of RAM but from FLASH, then you may designate
13981398
any block of RAM as "primary."
13991399

1400-
if BOOT_RUNFROMFLASH && ARCH_USE_MMU
1400+
if BOOT_RUNFROMFLASH
14011401

14021402
config FLASH_START
14031403
hex "Boot FLASH start address (physical)"
@@ -1409,6 +1409,7 @@ config FLASH_START
14091409
config FLASH_VSTART
14101410
hex "Boot FLASH start address (virtual)"
14111411
default 0x0
1412+
depends on ARCH_USE_MMU
14121413
---help---
14131414
The virtual start address of installed boot FLASH. "Boot" FLASH
14141415
refers to the FLASH that you link program code into.
@@ -1420,7 +1421,7 @@ config FLASH_SIZE
14201421
The size in bytes of the installed boot FLASH. "Boot" FLASH
14211422
refers to the FLASH that you link program code into.
14221423

1423-
endif # BOOT_RUNFROMFLASH && ARCH_USE_MMU
1424+
endif # BOOT_RUNFROMFLASH
14241425

14251426
config ARCH_HAVE_SDRAM
14261427
bool

0 commit comments

Comments
 (0)