提交 fedebf0d 编写于 作者: Y York Sun

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: NYork Sun <york.sun@nxp.com>
上级 026f30ec
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册