From 8f435a2941778a45e348cdea6453bd6b68680cbe Mon Sep 17 00:00:00 2001 From: Yanfeng Liu Date: Fri, 17 Jan 2025 07:25:24 +0800 Subject: [PATCH] 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 --- arch/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index 08ef1dd46b6..cc79fa68ff4 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -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)" @@ -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. @@ -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