Commit a13d3757f7df25d0f017e85551b899d598ad1bdb

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent 71813dcb56

warp: 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.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

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

... ... @@ -46,7 +46,7 @@
46 46  
47 47 int dram_init(void)
48 48 {
49   - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
  49 + gd->ram_size = imx_ddr_size();
50 50  
51 51 return 0;
52 52 }
include/configs/warp.h
... ... @@ -43,7 +43,6 @@
43 43 /* Physical Memory Map */
44 44 #define CONFIG_NR_DRAM_BANKS 1
45 45 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR
46   -#define PHYS_SDRAM_SIZE SZ_512M
47 46  
48 47 #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM
49 48 #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR