diff options
author | Tom Rini <trini@konsulko.com> | 2018-01-12 14:18:34 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-01-12 14:18:34 -0500 |
commit | 18af965798153cea955773633feb05ed1647e9f6 (patch) | |
tree | a830ea881d8f1846cd5b25c0cce92756934d7139 /arch/arm/dts | |
parent | b6896fcbeb891b1e36c82e33e546e5ca277b8e52 (diff) | |
parent | 5fed97af20da955625cc06563a725b49cebb99eb (diff) |
Merge git://git.denx.de/u-boot-tegra
Diffstat (limited to 'arch/arm/dts')
-rw-r--r-- | arch/arm/dts/tegra-u-boot.dtsi | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/arch/arm/dts/tegra-u-boot.dtsi b/arch/arm/dts/tegra-u-boot.dtsi index cde591c5fc..4f692ee975 100644 --- a/arch/arm/dts/tegra-u-boot.dtsi +++ b/arch/arm/dts/tegra-u-boot.dtsi @@ -1,5 +1,11 @@ #include <config.h> +#ifdef CONFIG_SPL_TEXT_BASE +#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SPL_TEXT_BASE) +#else +#define U_BOOT_OFFSET 0 +#endif + / { binman { multiple-images; @@ -9,8 +15,7 @@ u-boot-spl { }; u-boot { - pos = <(CONFIG_SYS_TEXT_BASE - - CONFIG_SPL_TEXT_BASE)>; + pos = <(U_BOOT_OFFSET)>; }; }; @@ -21,8 +26,7 @@ u-boot-spl { }; u-boot { - pos = <(CONFIG_SYS_TEXT_BASE - - CONFIG_SPL_TEXT_BASE)>; + pos = <(U_BOOT_OFFSET)>; }; }; @@ -32,8 +36,7 @@ u-boot-spl { }; u-boot-nodtb { - pos = <(CONFIG_SYS_TEXT_BASE - - CONFIG_SPL_TEXT_BASE)>; + pos = <(U_BOOT_OFFSET)>; }; }; }; |