mirror of
https://xff.cz/git/u-boot/
synced 2025-09-05 10:42:10 +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:
@@ -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");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user