]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig
authorOvidiu Panait <ovidiu.panait@windriver.com>
Fri, 24 Jul 2020 11:12:11 +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_SIZE to Kconfig.

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

diff --git a/Kconfig b/Kconfig
index 9f7707a65291872c900063a94f255c3f3b0fe6e3..583d39d1a3a4d99129c140ae3e29cea04585c1af 100644 (file)
--- a/Kconfig
+++ b/Kconfig
@@ -395,6 +395,13 @@ config SYS_SRAM_BASE
        default 0x80000000 if TARGET_PIC32MZDASK
        default 0x0
 
+config SYS_SRAM_SIZE
+       hex
+       default 0x00080000 if TARGET_PIC32MZDASK
+       default 0x10000 if TARGET_DEVKIT8000
+       default 0x10000 if TARGET_TRICORDER
+       default 0x0
+
 endmenu                # General setup
 
 menu "Boot images"
index 5ef0fe7f924f94fd2841231777c11099fb013288..4a287128334649031ae76eae5a43151978f61dcd 100644 (file)
 
 /* SRAM config */
 #define CONFIG_SYS_SRAM_START              0x40200000
-#define CONFIG_SYS_SRAM_SIZE               0x10000
 
 /* Defines for SPL */
 
index 25b898f2e63ff5f1203b3e6a5ddd657daf13f515..d50edc7715f5a4c46d53ca38634544bf7c649ed9 100644 (file)
@@ -19,8 +19,6 @@
 /*----------------------------------------------------------------------
  * Memory Layout
  */
-#define CONFIG_SYS_SRAM_SIZE           0x00080000 /* 512K */
-
 /* Initial RAM for temporary stack, global data */
 #define CONFIG_SYS_INIT_RAM_SIZE       0x10000
 #define CONFIG_SYS_INIT_RAM_ADDR       \
index 02f57281afde298da28c69608971845ff8f6d341..b3ae350b776598e37863672e49fb01ccc9593f4f 100644 (file)
 
 /* SRAM config */
 #define CONFIG_SYS_SRAM_START          0x40200000
-#define CONFIG_SYS_SRAM_SIZE           0x10000
 
 /* Defines for SPL */
 
index 1345cef13491cc358d38ef751a0c09071a2ce8cf..0d526cf04551eed52c34a64efed70796fa636c8c 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_SIZE
 CONFIG_SYS_SRAM_START
 CONFIG_SYS_SRIO
 CONFIG_SYS_SRIO1_MEM_BASE