aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 20:07:50 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 22:42:09 +0900
commit2ce6b82d340cf1b1e5a43f1b5c8965d0067d5246 (patch)
tree7e1ec885b1620b776d595bd2c1b2cc12baaebc13 /arch
parent7095678787d98e51dbaa123d49abdd2d066d45e9 (diff)
downloadu-boot-2ce6b82d340cf1b1e5a43f1b5c8965d0067d5246.zip
u-boot-2ce6b82d340cf1b1e5a43f1b5c8965d0067d5246.tar.gz
u-boot-2ce6b82d340cf1b1e5a43f1b5c8965d0067d5246.tar.bz2
ARM: uniphier: set {kernel, ramdisk, fdt}_addr_r at boot-time
The base of DRAM will be changed for the next generation SoC. The addresses needed for booting the kernel should be shifted according to the DRAM base. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-uniphier/board_late_init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/board_late_init.c b/arch/arm/mach-uniphier/board_late_init.c
index 4701a28..3180b24 100644
--- a/arch/arm/mach-uniphier/board_late_init.c
+++ b/arch/arm/mach-uniphier/board_late_init.c
@@ -139,5 +139,9 @@ int board_late_init(void)
uniphier_set_env_addr("loadaddr", "loadaddr_offset");
+ uniphier_set_env_addr("kernel_addr_r", "kernel_addr_r_offset");
+ uniphier_set_env_addr("ramdisk_addr_r", "ramdisk_addr_r_offset");
+ uniphier_set_env_addr("fdt_addr_r", "fdt_addr_r_offset");
+
return 0;
}