summaryrefslogtreecommitdiff
path: root/board/warp
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2016-07-23 13:23:38 -0300
committerStefano Babic <sbabic@denx.de>2016-07-28 13:27:20 +0200
commita13d3757f7df25d0f017e85551b899d598ad1bdb (patch)
tree10e72eac2d15560e7eae285e07894091692e33e0 /board/warp
parent71813dcb56737707d12b697d5158ee96b48d7091 (diff)
warp: Use imx_ddr_size() for calculating the DDR size
imx_ddr_size() can be used to calculate the DDR size in runtime. By using this function we no longer need to define PHYS_SDRAM_SIZE. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/warp')
-rw-r--r--board/warp/warp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/warp/warp.c b/board/warp/warp.c
index 49dfdb6717..0bc0a6a92e 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -46,7 +46,7 @@ DECLARE_GLOBAL_DATA_PTR;
int dram_init(void)
{
- gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
+ gd->ram_size = imx_ddr_size();
return 0;
}