]> git.sur5r.net Git - u-boot/commitdiff
rpi: Fix fdt_high & initrd_high for 64-bit builds
authorTuomas Tynkkynen <tuomas@tuxera.com>
Fri, 20 Apr 2018 10:03:48 +0000 (13:03 +0300)
committerAlexander Graf <agraf@suse.de>
Sun, 3 Jun 2018 13:31:32 +0000 (15:31 +0200)
The magic value that disables relocation is dependent on the CPU word
size, so the current 'ffffffff' is doing the wrong thing on aarch64.

Signed-off-by: Tuomas Tynkkynen <tuomas@tuxera.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/configs/rpi.h

index 649a425bcdeaa20a06199875de378ebf49fdb8a4..a97550b7320748e51e25750c6057071bd8f2248d 100644 (file)
        "stdout=serial,vidconsole\0" \
        "stderr=serial,vidconsole\0"
 
+#ifdef CONFIG_ARM64
+#define FDT_HIGH "ffffffffffffffff"
+#define INITRD_HIGH "ffffffffffffffff"
+#else
+#define FDT_HIGH "ffffffff"
+#define INITRD_HIGH "ffffffff"
+#endif
+
 /*
  * Memory layout for where various images get loaded by boot scripts:
  *
  * large initrds before they start colliding with U-Boot.
  */
 #define ENV_MEM_LAYOUT_SETTINGS \
-       "fdt_high=ffffffff\0" \
-       "initrd_high=ffffffff\0" \
+       "fdt_high=" FDT_HIGH "\0" \
+       "initrd_high=" INITRD_HIGH "\0" \
        "kernel_addr_r=0x00080000\0" \
        "scriptaddr=0x02400000\0" \
        "pxefile_addr_r=0x02500000\0" \