]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: binman: Use a macro for the BL31 load address
authorSamuel Holland <samuel@sholland.org>
Thu, 22 Oct 2020 02:12:12 +0000 (21:12 -0500)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 22 Oct 2020 06:13:43 +0000 (11:43 +0530)
This consolidates the SoC-specific part at the top of the file to avoid
cluttering it up with preprocessor conditions.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/dts/sunxi-u-boot.dtsi

index b7195c5671008ef26001af292e892d8fe901cf0d..b8a0d4b6b08e65ef56b311699deec3165f094ea0 100644 (file)
@@ -1,5 +1,11 @@
 #include <config.h>
 
+#ifdef CONFIG_MACH_SUN50I_H6
+#define BL31_ADDR 0x104000
+#else
+#define BL31_ADDR  0x44000
+#endif
+
 / {
        aliases {
                mmc1 = &mmc2;
                                        type = "firmware";
                                        arch = "arm64";
                                        compression = "none";
-/* TODO: Do this with an overwrite in this board's dtb? */
-#ifdef CONFIG_MACH_SUN50I_H6
-                                       load = <0x104000>;
-                                       entry = <0x104000>;
-#else
-                                       load = <0x44000>;
-                                       entry = <0x44000>;
-#endif
+                                       load = <BL31_ADDR>;
+                                       entry = <BL31_ADDR>;
 
                                        atf-bl31 {
                                                filename = "bl31.bin";