mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-29 09:41:36 +02: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
@ -113,7 +113,9 @@ int fsl_initdram(void)
|
|||||||
phys_size_t dram_size;
|
phys_size_t dram_size;
|
||||||
|
|
||||||
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
||||||
return fsl_ddr_sdram_size();
|
gd->ram_size = fsl_ddr_sdram_size();
|
||||||
|
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
puts("Initializing DDR....using SPD\n");
|
puts("Initializing DDR....using SPD\n");
|
||||||
|
|
||||||
|
@ -97,7 +97,9 @@ int fsl_initdram(void)
|
|||||||
phys_size_t dram_size;
|
phys_size_t dram_size;
|
||||||
|
|
||||||
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
||||||
return fsl_ddr_sdram_size();
|
gd->ram_size = fsl_ddr_sdram_size();
|
||||||
|
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
puts("Initializing DDR....using SPD\n");
|
puts("Initializing DDR....using SPD\n");
|
||||||
|
|
||||||
|
@ -101,7 +101,9 @@ int fsl_initdram(void)
|
|||||||
phys_size_t dram_size;
|
phys_size_t dram_size;
|
||||||
|
|
||||||
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_SPL) && !defined(CONFIG_SPL_BUILD)
|
||||||
return fsl_ddr_sdram_size();
|
gd->ram_size = fsl_ddr_sdram_size();
|
||||||
|
|
||||||
|
return 0;
|
||||||
#else
|
#else
|
||||||
puts("Initializing DDR....using SPD\n");
|
puts("Initializing DDR....using SPD\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user