]> git.sur5r.net Git - u-boot/commitdiff
ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL
authorStephen Warren <swarren@nvidia.com>
Wed, 20 Dec 2017 01:30:34 +0000 (18:30 -0700)
committerTom Warren <twarren@nvidia.com>
Fri, 12 Jan 2018 16:52:10 +0000 (09:52 -0700)
64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE
when building. Fix the binman .dts file so that it doesn't use undefined
values.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/dts/tegra-u-boot.dtsi

index cde591c5fca410913713ca28372eab1194d8dbd8..4f692ee975729295ec638b7751e4ca2b2d573b4c 100644 (file)
@@ -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)>;
                        };
                };
        };