]> git.sur5r.net Git - u-boot/commitdiff
bx50v3: Use imx_ddr_size() for calculating the DDR size
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 23 Jul 2016 16:23:40 +0000 (13:23 -0300)
committerStefano Babic <sbabic@denx.de>
Thu, 28 Jul 2016 11:27:20 +0000 (13:27 +0200)
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.

Cc: Martin Donnelly <martin.donnelly@ge.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
board/ge/bx50v3/bx50v3.c
include/configs/ge_bx50v3.h

index d45ed44c68435ecb93ad33a1c5fb846889ead7ce..e9729f88e5c8bc87650d3f60bd79f77d673194fd 100644 (file)
@@ -60,7 +60,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;
 }
index 4de2460bc0ee641bf9ddb38d8aa78bed85bda984..7a54546f8315db3a63611c0a3f30979997773a74 100644 (file)
@@ -32,8 +32,6 @@
 #define CONFIG_MXC_UART_BASE   UART3_BASE
 #define CONFIG_CONSOLE_DEV     "ttymxc2"
 
-#define PHYS_SDRAM_SIZE                (2u * 1024 * 1024 * 1024)
-
 #define CONFIG_SUPPORT_EMMC_BOOT