mx7ulp_evk: Use imx_ddr_size()
authorFabio Estevam <festevam@gmail.com>
Thu, 18 Jul 2019 18:04:25 +0000 (15:04 -0300)
committerStefano Babic <sbabic@denx.de>
Mon, 14 Oct 2019 07:31:41 +0000 (09:31 +0200)
commit49cf320f7a9d6e053b190a60bf7e1cba00d3e49c
tree9087ff4d2ceb449f17d74c03f6409e7e572f4d94
parentd9fba73a88afa4b8e2fdcc81778116bba8fbb243
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>
board/freescale/mx7ulp_evk/mx7ulp_evk.c