]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mx6sxsabreauto/mx6sxsabreauto.c
mx6sxsabreauto: Avoid hardcoded RAM size
[u-boot] / board / freescale / mx6sxsabreauto / mx6sxsabreauto.c
index 886373c901a492ac86740fd15cabf93c0409cbbb..44e6a7d14115558f5c305ce8d9c680e00cfdc6c5 100644 (file)
@@ -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;
 }