summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2019-07-18 15:04:25 -0300
committerStefano Babic <sbabic@denx.de>2019-10-14 09:31:41 +0200
commit49cf320f7a9d6e053b190a60bf7e1cba00d3e49c (patch)
tree9087ff4d2ceb449f17d74c03f6409e7e572f4d94 /board/freescale
parentd9fba73a88afa4b8e2fdcc81778116bba8fbb243 (diff)
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>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx7ulp_evk/mx7ulp_evk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx7ulp_evk/mx7ulp_evk.c b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
index 7527263577..c939514a5f 100644
--- a/board/freescale/mx7ulp_evk/mx7ulp_evk.c
+++ b/board/freescale/mx7ulp_evk/mx7ulp_evk.c
@@ -17,7 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = PHYS_SDRAM_SIZE;
+ gd->ram_size = imx_ddr_size();
return 0;
}