From: Christian Gmeiner Date: Mon, 19 Jan 2015 16:26:45 +0000 (+0100) Subject: ot1200: make use of imx_ddr_size(..) X-Git-Tag: v2015.04-rc2~35^2~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f77dd6d7dbe42cee2b03d1b4c8b34ceb15643174;p=oweals%2Fu-boot.git ot1200: make use of imx_ddr_size(..) To support different ddr3 memory sizes we should start using imx_ddr_size(..) instead of the define PHYS_SDRAM_SIZE. Signed-off-by: Christian Gmeiner --- diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c index 93f3d65176..039e858706 100644 --- a/board/bachmann/ot1200/ot1200.c +++ b/board/bachmann/ot1200/ot1200.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -46,7 +47,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; } diff --git a/include/configs/ot1200.h b/include/configs/ot1200.h index 255c933baa..97ee664e20 100644 --- a/include/configs/ot1200.h +++ b/include/configs/ot1200.h @@ -159,7 +159,6 @@ /* Physical Memory Map */ #define CONFIG_NR_DRAM_BANKS 1 #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR -#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024) #define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM #define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR