]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Kconfig: preset TPL_LDSCRIPT via Kconfig for the RK3368
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 2 Aug 2017 19:26:18 +0000 (21:26 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sun, 13 Aug 2017 15:12:34 +0000 (17:12 +0200)
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>
arch/arm/mach-rockchip/Kconfig
include/configs/rk3368_common.h

index b6f40d03f5cf3c8a3551f27b7274da23d6c42a45..4a6f629f2a1e30c614ef40ecb49616858e9e512b 100644 (file)
@@ -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
index 678f40d5bf678923c4136583f1969e49cd219dbc..513adab636f51349a1fa4324b4b9ec2cf28189d0 100644 (file)
@@ -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