mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
mx7ulp_evk: Use imx_ddr_size()
Use imx_ddr_size() to retrieve the total DDR size instead of passing a hardcoded memory size. imx_ddr_size() calculates the memory size based on the actual MMDC registers values and is useful to detect misconfigurations, so switch to this more robust approach. Signed-off-by: Fabio Estevam <festevam@gmail.com>
This commit is contained in:
committed by
Stefano Babic
parent
d9fba73a88
commit
49cf320f7a
@@ -17,7 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
gd->ram_size = PHYS_SDRAM_SIZE;
|
gd->ram_size = imx_ddr_size();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user