]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:10 +0000 (14:12 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 6 Aug 2020 18:26:35 +0000 (14:26 -0400)
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Kconfig
include/configs/pic32mzdask.h
scripts/config_whitelist.txt

diff --git a/Kconfig b/Kconfig
index 54b3680b72c9f8326839df3007c93e78f442f3ab..9f7707a65291872c900063a94f255c3f3b0fe6e3 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -390,6 +390,11 @@ config SYS_HAS_SRAM
          SRAM base address is controlled by CONFIG_SYS_SRAM_BASE.
          SRAM size is controlled by CONFIG_SYS_SRAM_SIZE.
 
+config SYS_SRAM_BASE
+       hex
+       default 0x80000000 if TARGET_PIC32MZDASK
+       default 0x0
+
 endmenu                # General setup
 
 menu "Boot images"
index 73edd28f1a6f16aa4e2a74167e83e7b45f144040..25b898f2e63ff5f1203b3e6a5ddd657daf13f515 100644 (file)
@@ -19,7 +19,6 @@
 /*----------------------------------------------------------------------
  * Memory Layout
  */
-#define CONFIG_SYS_SRAM_BASE           0x80000000
 #define CONFIG_SYS_SRAM_SIZE           0x00080000 /* 512K */
 
 /* Initial RAM for temporary stack, global data */
index 6645d73cdcaaa9632a92f28baaf88c46e28f2b32..1345cef13491cc358d38ef751a0c09071a2ce8cf 100644 (file)
@@ -3715,7 +3715,6 @@ CONFIG_SYS_SPL_LEN
 CONFIG_SYS_SPL_MALLOC_SIZE
 CONFIG_SYS_SPL_MALLOC_START
 CONFIG_SYS_SPR
-CONFIG_SYS_SRAM_BASE
 CONFIG_SYS_SRAM_SIZE
 CONFIG_SYS_SRAM_START
 CONFIG_SYS_SRIO