ARM: uniphier: set dram_base environment variable
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jul 2019 11:07:49 +0000 (20:07 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jul 2019 13:42:08 +0000 (22:42 +0900)
The base of DRAM will be changed for the next generation SoC.

Set the base address to the 'dram_base' environment variable, which
will be useful for scripting.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/board_late_init.c

index dbd1f17e832e8a809e597a240683666587d773b0..4701a28923798a2fab13b5f1f67c0759220c8016 100644 (file)
@@ -135,6 +135,8 @@ int board_late_init(void)
 
        uniphier_set_env_fdt_file();
 
+       uniphier_set_env_addr("dram_base", NULL);
+
        uniphier_set_env_addr("loadaddr", "loadaddr_offset");
 
        return 0;