diff options
author | Vanessa Maegima <vanessa.maegima@nxp.com> | 2016-06-08 15:17:54 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-12 17:58:48 +0200 |
commit | 369012e7e96761c1ac4ccb0cd9052c6f56468082 (patch) | |
tree | 0f8e0bfd5229912889788b08e3f53c7bef092f27 /board/freescale/mx6qsabreauto | |
parent | 876a25d289cf9ae6b052ea0dc61b7522e1dec4e1 (diff) | |
download | u-boot-369012e7e96761c1ac4ccb0cd9052c6f56468082.tar.gz |
mx6qsabreauto: Avoid hardcoded RAM size
Instead of passing the total RAM size via PHYS_SDRAM_SIZE option,
we should better use imx_ddr_size() function, which automatically
determines the RAM size.
Signed-off-by: Vanessa Maegima <vanessa.maegima@nxp.com>
Acked-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/freescale/mx6qsabreauto')
-rw-r--r-- | board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c index d63a979be5..a3ed4cd466 100644 --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c @@ -64,7 +64,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; } |