summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2021-04-12 01:04:50 +0100
committerTom Rini <trini@konsulko.com>2021-04-20 07:31:12 -0400
commit84b2cd74f370dabb707e2611bf57714a66d08622 (patch)
treeb7ac6419a2e836a1260cec91a44dc3952169e51d /include
parenta606106402ff1781b123d4041a09d0af23a3078e (diff)
downloadu-boot-84b2cd74f370dabb707e2611bf57714a66d08622.tar.gz
u-boot-84b2cd74f370dabb707e2611bf57714a66d08622.tar.xz
u-boot-84b2cd74f370dabb707e2611bf57714a66d08622.zip
arm: highbank: Limit FDT and initrd load addresses
So far on Highbank/Midway machines U-Boot only ever uses 512MB of DRAM, even though the machines have typically 4GB and 8GB, respectively. That means that so far we didn't need an extra limit for placing the DTB and initrd, as the 512MB are lower than the kernel's limit ("lowmem", typically 768MB). With U-Boot now needing to learn about the actual memory size (to correctly populate the EFI memory map), it might relocate fdt and initrd to the end of DRAM, which is out of reach of the kernel. So add limiting values to the fdt_high and initrd_high environment variables, to prevent U-Boot from using too high addresses. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/highbank.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/configs/highbank.h b/include/configs/highbank.h
index bdbaa475d2..5e3cc3a1db 100644
--- a/include/configs/highbank.h
+++ b/include/configs/highbank.h
@@ -57,4 +57,8 @@
#define CONFIG_SYS_INIT_SP_ADDR 0x01000000
#define CONFIG_SKIP_LOWLEVEL_INIT
+#define CONFIG_EXTRA_ENV_SETTINGS \
+ "fdt_high=0x20000000\0" \
+ "initrd_high=0x20000000\0"
+
#endif