diff options
author | Vanessa Maegima <vanessa.maegima@nxp.com> | 2016-06-09 15:28:31 -0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-07-12 17:58:49 +0200 |
commit | 8259e9c9adc263a3e9619bd4713dfddea19509b8 (patch) | |
tree | 16cfd55de718d2f4b9f4a8ffa6427810d605a566 /board/freescale | |
parent | e355eec79dd150d6f44e52357b5e805aed6ebc4a (diff) | |
download | u-boot-imx-8259e9c9adc263a3e9619bd4713dfddea19509b8.zip u-boot-imx-8259e9c9adc263a3e9619bd4713dfddea19509b8.tar.gz u-boot-imx-8259e9c9adc263a3e9619bd4713dfddea19509b8.tar.bz2 |
mx6slevk: 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>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx6slevk/mx6slevk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 256d602..f978e50 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -61,7 +61,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; } |