Commit c6a51bab174ecb4c6bebfada951ac556ffc13fcd

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent 84c51687a7

bx50v3: Use imx_ddr_size() for calculating the DDR size

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>

Showing 2 changed files with 1 additions and 3 deletions Side-by-side Diff

board/ge/bx50v3/bx50v3.c
... ... @@ -60,7 +60,7 @@
60 60  
61 61 int dram_init(void)
62 62 {
63   - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
  63 + gd->ram_size = imx_ddr_size();
64 64  
65 65 return 0;
66 66 }
include/configs/ge_bx50v3.h
... ... @@ -32,8 +32,6 @@
32 32 #define CONFIG_MXC_UART_BASE UART3_BASE
33 33 #define CONFIG_CONSOLE_DEV "ttymxc2"
34 34  
35   -#define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024)
36   -
37 35 #define CONFIG_SUPPORT_EMMC_BOOT
38 36  
39 37