summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-01-22 17:09:24 -0500
committerTom Rini <trini@konsulko.com>2019-01-26 22:55:53 -0500
commita6d6812a212cf2ac263b23e68e6cbf719e64ac20 (patch)
tree98e84a0687c1adfdf5b2b18916a55dbcf768c526 /arch/powerpc/cpu
parent0da90255083681a02b24528f80da9d4062ff634a (diff)
PowerPC: Stop re-using CONFIG_SPL_TEXT_BASE for TPL
Rather than checking for CONFIG_TPL_BUILD and then re-defining CONFIG_SPL_TEXT_BASE make use of CONFIG_TPL_TEXT_BASE directly. Cc: York Sun <york.sun@nxp.com> Cc: Po Liu <po.liu@nxp.com> Cc: Qiang Zhao <qiang.zhao@nxp.com> Cc: Timur Tabi <timur@tabi.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r--arch/powerpc/cpu/mpc85xx/u-boot-spl.lds4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
index 6dc8d9913b..bd0eeb1042 100644
--- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
+++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
@@ -18,7 +18,11 @@ PHDRS
#endif
SECTIONS
{
+#ifdef CONFIG_TPL_BUILD
+ . = CONFIG_TPL_TEXT_BASE;
+#else
. = CONFIG_SPL_TEXT_BASE;
+#endif
.text : {
*(.text*)
}