aboutsummaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorVanessa Maegima2016-06-09 15:28:32 -0300
committerStefano Babic2016-07-12 17:58:49 +0200
commit432a8a55478d431e036e695c3f8b9d9e2536f744 (patch)
tree806fdd1e321036292767b28e0d5d91774d86b2cb /board/freescale
parent8259e9c9adc263a3e9619bd4713dfddea19509b8 (diff)
mx6sxsabreauto: 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>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6sxsabreauto/mx6sxsabreauto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
index 886373c901a..44e6a7d1411 100644
--- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
+++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
@@ -106,7 +106,7 @@ static int port_exp_direction_output(unsigned gpio, int value)
int dram_init(void)
{
- gd->ram_size = PHYS_SDRAM_SIZE;
+ gd->ram_size = imx_ddr_size();
return 0;
}