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>
This commit is contained in:
York Sun 2017-04-20 16:04:23 -07:00
parent 026f30ec3e
commit fedebf0d08
3 changed files with 9 additions and 3 deletions

View file

@ -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");

View file

@ -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");

View file

@ -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");