summaryrefslogtreecommitdiffstats
path: root/common/board_f.c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-04-07 10:11:20 +0100
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2014-04-20 13:16:43 +0200
commit3da7e5a50be7ca8deeac822787c7ee3bcd465c07 (patch)
tree01e966f44998171eff6654e4b116b576b4a29aa6 /common/board_f.c
parenta0af08b9db92c7dc8051a8cfd12d5520d85ab4a9 (diff)
downloadtalos-obmc-uboot-3da7e5a50be7ca8deeac822787c7ee3bcd465c07.tar.gz
talos-obmc-uboot-3da7e5a50be7ca8deeac822787c7ee3bcd465c07.zip
board_f: call init_func_ram on MIPS
Assigning gd->ram_size the return value of initdram matches the existing MIPS board behaviour. Suggested-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_f.c b/common/board_f.c
index f285bad538..2ece9e26aa 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -173,7 +173,7 @@ static int announce_dram_init(void)
return 0;
}
-#ifdef CONFIG_PPC
+#if defined(CONFIG_MIPS) || defined(CONFIG_PPC)
static int init_func_ram(void)
{
#ifdef CONFIG_BOARD_TYPES
@@ -889,7 +889,7 @@ static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_ARM
dram_init, /* configure available RAM banks */
#endif
-#ifdef CONFIG_PPC
+#if defined(CONFIG_MIPS) || defined(CONFIG_PPC)
init_func_ram,
#endif
#ifdef CONFIG_POST
OpenPOWER on IntegriCloud