summaryrefslogtreecommitdiff
path: root/board/csb472/csb472.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/csb472/csb472.c')
-rw-r--r--board/csb472/csb472.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/board/csb472/csb472.c b/board/csb472/csb472.c
index 833bbce..9dc130e 100644
--- a/board/csb472/csb472.c
+++ b/board/csb472/csb472.c
@@ -27,6 +27,8 @@
#include <miiphy.h>
#include <ppc4xx_enet.h>
+void sdram_init(void);
+
/*
* board_early_init_f: do early board initialization
*
@@ -86,12 +88,19 @@ int checkboard(void)
* configured by initialization code
*
*/
-long initdram (int board_type)
+phys_size_t initdram (int board_type)
{
ulong tot_size;
ulong bank_size;
ulong tmp;
+ /*
+ * ToDo: Move the asm init routine sdram_init() to this C file,
+ * or even better use some common ppc4xx code available
+ * in cpu/ppc4xx
+ */
+ sdram_init();
+
tot_size = 0;
mtdcr (memcfga, mem_mb0cf);