summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-07-24 14:12:10 +0300
committerTom Rini <trini@konsulko.com>2020-08-06 21:26:35 +0300
commitdd084b0a378c83e1f80785cc82049578849fb3d6 (patch)
tree76120e2139173ec7eede89461f2b5013c3ce9399
parent7be19313b3804576a421beecc005112b3b8b5cb0 (diff)
downloadu-boot-dd084b0a378c83e1f80785cc82049578849fb3d6.tar.xz
Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig
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>
-rw-r--r--Kconfig5
-rw-r--r--include/configs/pic32mzdask.h1
-rw-r--r--scripts/config_whitelist.txt1
3 files changed, 5 insertions, 2 deletions
diff --git a/Kconfig b/Kconfig
index 54b3680b72..9f7707a652 100644
--- 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"
diff --git a/include/configs/pic32mzdask.h b/include/configs/pic32mzdask.h
index 73edd28f1a..25b898f2e6 100644
--- a/include/configs/pic32mzdask.h
+++ b/include/configs/pic32mzdask.h
@@ -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 */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 6645d73cdc..1345cef134 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -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