aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-08-02 21:26:18 +0200
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-08-13 17:12:34 +0200
commitd9d1242b822025e99c60299a09f933dd6285ae74 (patch)
treebb74220a5d08df38243a6d820f70490d30fcd6b6
parentdd6fbcb9381f6ce0b683bc16ee18da8008c1a558 (diff)
downloadu-boot-d9d1242b822025e99c60299a09f933dd6285ae74.zip
u-boot-d9d1242b822025e99c60299a09f933dd6285ae74.tar.gz
u-boot-d9d1242b822025e99c60299a09f933dd6285ae74.tar.bz2
rockchip: Kconfig: preset TPL_LDSCRIPT via Kconfig for the RK3368
Set TPL_LDSCRIPT in Kconfig, so we don't have to pollute our header file. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-rw-r--r--arch/arm/mach-rockchip/Kconfig7
-rw-r--r--include/configs/rk3368_common.h2
2 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index b6f40d0..4a6f629 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -86,6 +86,13 @@ config ROCKCHIP_RK3368
On-chip peripherals include Gigabit Ethernet, USB2 host and OTG, SDIO,
I2S, UARTs, SPI, I2C and PWMs.
+if ROCKCHIP_RK3368
+
+config TPL_LDSCRIPT
+ default "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
+
+endif
+
config ROCKCHIP_RK3399
bool "Support Rockchip RK3399"
select ARM64
diff --git a/include/configs/rk3368_common.h b/include/configs/rk3368_common.h
index 678f40d..513adab 100644
--- a/include/configs/rk3368_common.h
+++ b/include/configs/rk3368_common.h
@@ -35,8 +35,6 @@
#define CONFIG_SPL_BSS_START_ADDR 0x400000
#define CONFIG_SPL_BSS_MAX_SIZE 0x20000
-#define CONFIG_TPL_LDSCRIPT \
- "arch/arm/mach-rockchip/rk3368/u-boot-tpl.lds"
#define CONFIG_TPL_TEXT_BASE 0xff8c1000
#define CONFIG_TPL_MAX_SIZE 0x7000
#define CONFIG_TPL_STACK 0xff8cffff