diff options
Diffstat (limited to 'board/csb272/csb272.c')
-rw-r--r-- | board/csb272/csb272.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/board/csb272/csb272.c b/board/csb272/csb272.c index 24c6f0d..5a585ae 100644 --- a/board/csb272/csb272.c +++ b/board/csb272/csb272.c @@ -27,6 +27,8 @@ #include <miiphy.h> #include <ppc4xx_enet.h> +void sdram_init(void); + /* * Configuration data for AMIS FS6377-01 Programmable 3-PLL Clock Generator * @@ -118,12 +120,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); |