diff options
Diffstat (limited to 'board/freescale/ls1021aqds')
-rw-r--r-- | board/freescale/ls1021aqds/ddr.c | 6 | ||||
-rw-r--r-- | board/freescale/ls1021aqds/ls1021aqds.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c index 99a4984fbc..8e8cd37b8b 100644 --- a/board/freescale/ls1021aqds/ddr.c +++ b/board/freescale/ls1021aqds/ddr.c @@ -164,7 +164,7 @@ void board_mem_sleep_setup(void) } #endif -phys_size_t initdram(void) +int initdram(void) { phys_size_t dram_size; @@ -179,7 +179,9 @@ phys_size_t initdram(void) fsl_dp_resume(); #endif - return dram_size; + gd->ram_size = dram_size; + + return 0; } void dram_init_banksize(void) diff --git a/board/freescale/ls1021aqds/ls1021aqds.c b/board/freescale/ls1021aqds/ls1021aqds.c index 57314e2c9f..909fc56275 100644 --- a/board/freescale/ls1021aqds/ls1021aqds.c +++ b/board/freescale/ls1021aqds/ls1021aqds.c @@ -162,9 +162,7 @@ int dram_init(void) * before accessing DDR SPD. */ select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT); - gd->ram_size = initdram(); - - return 0; + return initdram(); } #ifdef CONFIG_FSL_ESDHC |