mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 18:11:33 +00:00
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:
parent
026f30ec3e
commit
fedebf0d08
3 changed files with 9 additions and 3 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue