summaryrefslogtreecommitdiff
path: root/board/freescale/ls1043aqds/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/ls1043aqds/ddr.c')
-rw-r--r--board/freescale/ls1043aqds/ddr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/ls1043aqds/ddr.c b/board/freescale/ls1043aqds/ddr.c
index 2643f5bf4a..b22d3784dc 100644
--- a/board/freescale/ls1043aqds/ddr.c
+++ b/board/freescale/ls1043aqds/ddr.c
@@ -113,7 +113,9 @@ int fsl_initdram(void)
phys_size_t dram_size;
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
- return fsl_ddr_sdram_size();
+ gd->ram_size = fsl_ddr_sdram_size();
+
+ return 0;
#else
puts("Initializing DDR....using SPD\n");