diff options
Diffstat (limited to 'board/cm5200/cm5200.c')
-rw-r--r-- | board/cm5200/cm5200.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/cm5200/cm5200.c b/board/cm5200/cm5200.c index 2ac9fd9cd1..be0d65c694 100644 --- a/board/cm5200/cm5200.c +++ b/board/cm5200/cm5200.c @@ -97,7 +97,7 @@ static mem_conf_t* get_mem_config(int board_type) /* * Initalize SDRAM - configure SDRAM controller, detect memory size. */ -phys_size_t initdram(void) +int initdram(void) { ulong dramsize = 0; #ifndef CONFIG_SYS_RAMBOOT @@ -150,7 +150,9 @@ phys_size_t initdram(void) *(vu_long *)MPC5XXX_SDRAM_SDELAY = 0x04; __asm__ volatile ("sync"); - return dramsize; + gd->ram_size = dramsize; + + return 0; } |