aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOvidiu Panait <ovidiu.panait@windriver.com>2020-07-24 14:12:11 +0300
committerTom Rini <trini@konsulko.com>2020-08-06 14:26:35 -0400
commit9f63f02755f4cbdb8ee39d8da605d2f643aae220 (patch)
treee7d84840958285fb3426da9335fc02c4d810fb4f
parentdd084b0a378c83e1f80785cc82049578849fb3d6 (diff)
downloadu-boot-9f63f02755f4cbdb8ee39d8da605d2f643aae220.zip
u-boot-9f63f02755f4cbdb8ee39d8da605d2f643aae220.tar.gz
u-boot-9f63f02755f4cbdb8ee39d8da605d2f643aae220.tar.bz2
Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig
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>
-rw-r--r--Kconfig7
-rw-r--r--include/configs/devkit8000.h1
-rw-r--r--include/configs/pic32mzdask.h2
-rw-r--r--include/configs/tricorder.h1
-rw-r--r--scripts/config_whitelist.txt1
5 files changed, 7 insertions, 5 deletions
diff --git a/Kconfig b/Kconfig
index 9f7707a..583d39d 100644
--- 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"
diff --git a/include/configs/devkit8000.h b/include/configs/devkit8000.h
index 5ef0fe7..4a28712 100644
--- a/include/configs/devkit8000.h
+++ b/include/configs/devkit8000.h
@@ -139,7 +139,6 @@
/* SRAM config */
#define CONFIG_SYS_SRAM_START 0x40200000
-#define CONFIG_SYS_SRAM_SIZE 0x10000
/* Defines for SPL */
diff --git a/include/configs/pic32mzdask.h b/include/configs/pic32mzdask.h
index 25b898f..d50edc7 100644
--- a/include/configs/pic32mzdask.h
+++ b/include/configs/pic32mzdask.h
@@ -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 \
diff --git a/include/configs/tricorder.h b/include/configs/tricorder.h
index 02f5728..b3ae350 100644
--- a/include/configs/tricorder.h
+++ b/include/configs/tricorder.h
@@ -199,7 +199,6 @@
/* SRAM config */
#define CONFIG_SYS_SRAM_START 0x40200000
-#define CONFIG_SYS_SRAM_SIZE 0x10000
/* Defines for SPL */
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 1345cef..0d526cf 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_SIZE
CONFIG_SYS_SRAM_START
CONFIG_SYS_SRIO
CONFIG_SYS_SRIO1_MEM_BASE