summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc5xxx/spl_boot.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-04-06 12:47:05 -0600
committerTom Rini <trini@konsulko.com>2017-04-13 09:40:57 -0400
commitf1683aa73c31db0a025e0254e6ce1ee7e56aad3e (patch)
treee60233acce1fb476d8d79cecd6252d50ed456b32 /arch/powerpc/cpu/mpc5xxx/spl_boot.c
parent3eace37e5098c7f020a45a3672c062cd4ea199a0 (diff)
board_f: Rename initdram() to dram_init()
This allows us to use the same DRAM init function on all archs. Add a dummy function for arc, which does not use DRAM init here. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Dummy function on nios2] Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc5xxx/spl_boot.c')
-rw-r--r--arch/powerpc/cpu/mpc5xxx/spl_boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc5xxx/spl_boot.c b/arch/powerpc/cpu/mpc5xxx/spl_boot.c
index 23d2010343..2d7f6c4a93 100644
--- a/arch/powerpc/cpu/mpc5xxx/spl_boot.c
+++ b/arch/powerpc/cpu/mpc5xxx/spl_boot.c
@@ -32,7 +32,7 @@ void board_init_f(ulong bootflag)
/*
* On MPC5200, the initial RAM (and gd) is located in the internal
* SRAM. So we can actually call the preloader console init code
- * before calling initdram(). This makes serial output (printf)
+ * before calling dram_init(). This makes serial output (printf)
* available very early, even before SDRAM init, which has been
* an U-Boot priciple from day 1.
*/
@@ -62,7 +62,7 @@ void board_init_f(ulong bootflag)
* First we need to initialize the SDRAM, so that the real
* U-Boot or the OS (Linux) can be loaded
*/
- initdram();
+ dram_init();
/* Clear bss */
memset(__bss_start, '\0', __bss_end - __bss_start);