diff options
author | York Sun <york.sun@nxp.com> | 2017-04-20 16:04:23 -0700 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2017-04-24 09:07:12 -0700 |
commit | fedebf0d08a7aa152f8f27de1d40eb036557c11b (patch) | |
tree | 114edc7d0df4fc47f2ffa982927e730d5591e949 /board/freescale/ls1046ardb/ddr.c | |
parent | 026f30ec3e846edb85b5df8265d8cad098184be6 (diff) |
armv8: layerscape: Fix DDR size calcuation for SPL build
Commit 088454cd dropped return value from initram(), setting
gd->ram_size directly. Three boards were missed for SPL boot.
Signed-off-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'board/freescale/ls1046ardb/ddr.c')
-rw-r--r-- | board/freescale/ls1046ardb/ddr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/ls1046ardb/ddr.c b/board/freescale/ls1046ardb/ddr.c index a16f7bc83a..ae5046cab6 100644 --- a/board/freescale/ls1046ardb/ddr.c +++ b/board/freescale/ls1046ardb/ddr.c @@ -101,7 +101,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"); |