summaryrefslogtreecommitdiff
path: root/board/freescale/ls1046aqds/ddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/freescale/ls1046aqds/ddr.c')
-rw-r--r--board/freescale/ls1046aqds/ddr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/ls1046aqds/ddr.c b/board/freescale/ls1046aqds/ddr.c
index d37af34..5fcfa0f 100644
--- a/board/freescale/ls1046aqds/ddr.c
+++ b/board/freescale/ls1046aqds/ddr.c
@@ -97,7 +97,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");