diff options
author | Simon Glass <sjg@chromium.org> | 2017-04-06 21:47:05 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-13 16:40:57 +0300 |
commit | f1683aa73c31db0a025e0254e6ce1ee7e56aad3e (patch) | |
tree | e60233acce1fb476d8d79cecd6252d50ed456b32 /arch/powerpc/cpu/ppc4xx/sdram.c | |
parent | 3eace37e5098c7f020a45a3672c062cd4ea199a0 (diff) | |
download | u-boot-f1683aa73c31db0a025e0254e6ce1ee7e56aad3e.tar.xz |
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/ppc4xx/sdram.c')
-rw-r--r-- | arch/powerpc/cpu/ppc4xx/sdram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/sdram.c b/arch/powerpc/cpu/ppc4xx/sdram.c index a49bd69aba..c416bcebf6 100644 --- a/arch/powerpc/cpu/ppc4xx/sdram.c +++ b/arch/powerpc/cpu/ppc4xx/sdram.c @@ -150,7 +150,7 @@ static ulong compute_rtr(ulong speed, ulong rows, ulong refresh) /* * Autodetect onboard SDRAM on 405 platforms */ -int initdram(void) +int dram_init(void) { ulong speed; ulong sdtr1; @@ -353,7 +353,7 @@ static void sdram_tr1_set(int ram_address, int* tr1_value) * so this should be extended for other future boards * using this routine! */ -int initdram(void) +int dram_init(void) { int i; int tr1_bank1; |