]> git.sur5r.net Git - u-boot/commitdiff
rockchip: rk3288: Add TPL_LDSCRIPT
authorJagan Teki <jagannadh.teki@gmail.com>
Fri, 23 Feb 2018 07:43:10 +0000 (13:13 +0530)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sat, 24 Feb 2018 17:47:22 +0000 (18:47 +0100)
Due to size limitations in SPL by adding falcon mode,
rk3288 support TPL. In order to not overlap SPL_TEXT_BASE
add TPL_TEXT_BASE with u-boot-tpl.lds that intern call
u-boot-spl.lds with proper TEXT_BASE values.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/mach-rockchip/Kconfig
arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds [new file with mode: 0644]

index 1e5a7bb79b528bbf5bd7acfdf5d00c701ed2c782..d9218da64fafd3cc8aeb45c1f47b7c53c2af8062 100644 (file)
@@ -72,6 +72,13 @@ config ROCKCHIP_RK3288
          and video codec support. Peripherals include Gigabit Ethernet,
          USB2 host and OTG, SDIO, I2S, UARTs, SPI, I2C and PWMs.
 
+if ROCKCHIP_RK3288
+
+config TPL_LDSCRIPT
+       default "arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds"
+
+endif
+
 config ROCKCHIP_RK3328
        bool "Support Rockchip RK3328"
        select ARM64
diff --git a/arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds b/arch/arm/mach-rockchip/rk3288/u-boot-tpl.lds
new file mode 100644 (file)
index 0000000..c7a6092
--- /dev/null
@@ -0,0 +1,10 @@
+/*
+ * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
+ *
+ * SPDX-License-Identifier:    GPL-2.0+
+ */
+
+#undef CONFIG_SPL_TEXT_BASE
+#define CONFIG_SPL_TEXT_BASE   CONFIG_TPL_TEXT_BASE
+
+#include "../../cpu/u-boot-spl.lds"