moveconfig: migrate TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Jul 2017 18:20:41 +0000 (20:20 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:35 +0000 (17:12 +0200)
We can finally drop TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE off the
whitelist (this time it's really happening!) and migrate the setting
(only used on the RK3368-uQ7 so far) into Kconfig.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/Kconfig
common/spl/Kconfig
include/configs/rk3368_common.h
scripts/config_whitelist.txt

index 45029d1d1c5386642228be1d57306304a9159c98..d9b25d5de4e66647799569df0d4c35089949afde 100644 (file)
@@ -93,6 +93,15 @@ if ROCKCHIP_RK3368
 config TPL_LDSCRIPT
        default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
 
+config TPL_TEXT_BASE
+        default 0xff8c1000
+
+config TPL_MAX_SIZE
+        default 28672
+
+config TPL_STACK
+        default 0xff8cffff
+
 endif
 
 config ROCKCHIP_RK3399
index 1a905884927e1570fbb22e58acbca1899bd10ef5..192f7f66ddf2c1fa0e3b1d3df1cef3a903293226 100644 (file)
@@ -754,6 +754,7 @@ config TPL_TEXT_BASE
 
 config TPL_MAX_SIZE
         int "Maximum size (in bytes) for the TPL stage"
+       default 0
        depends on TPL
        help
          The maximum size (in bytes) of the TPL stage.
index 513adab636f51349a1fa4324b4b9ec2cf28189d0..a89c69a72b5158cc0aa74625b5ac9e4cb2955533 100644 (file)
 #define CONFIG_SPL_BSS_START_ADDR       0x400000
 #define CONFIG_SPL_BSS_MAX_SIZE         0x20000
 
-#define CONFIG_TPL_TEXT_BASE           0xff8c1000
-#define CONFIG_TPL_MAX_SIZE            0x7000
-#define CONFIG_TPL_STACK               0xff8cffff
-
 #define CONFIG_BOUNCE_BUFFER
 
 #ifndef CONFIG_SPL_BUILD
index 95ae3bfa4193ca854c12d3187929f54149edf95f..d9aeb62a024abb9f59ddca6f277a5a6b2d48c542 100644 (file)
@@ -4908,10 +4908,7 @@ CONFIG_TI_KEYSTONE_SERDES
 CONFIG_TI_KSNAV
 CONFIG_TI_SPI_MMAP
 CONFIG_TMU_TIMER
-CONFIG_TPL_MAX_SIZE
 CONFIG_TPL_PAD_TO
-CONFIG_TPL_STACK
-CONFIG_TPL_TEXT_BASE
 CONFIG_TPM_TIS_BASE_ADDRESS
 CONFIG_TPS6586X_POWER
 CONFIG_TQM834X