Commit 84c51687a79c4bac514c43c0c3a0118015e6b13c

Authored by Fabio Estevam
Committed by Stefano Babic
1 parent a13d3757f7

aristainetos: 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: Heiko Schocher <hs@denx.de>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Acked-by: Heiko Schocher <hs@denx.de>

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

board/aristainetos/aristainetos.c
... ... @@ -102,7 +102,7 @@
102 102  
103 103 int dram_init(void)
104 104 {
105   - gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
  105 + gd->ram_size = imx_ddr_size();
106 106  
107 107 return 0;
108 108 }
include/configs/aristainetos-common.h
... ... @@ -17,7 +17,6 @@
17 17  
18 18 #define CONFIG_MACH_TYPE 4501
19 19 #define CONFIG_MMCROOT "/dev/mmcblk0p1"
20   -#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
21 20  
22 21 /* Size of malloc() pool */
23 22 #define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)