summaryrefslogtreecommitdiffstats
path: root/board/bachmann
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2015-01-19 17:26:45 +0100
committerStefano Babic <sbabic@denx.de>2015-01-22 11:03:18 +0100
commitf77dd6d7dbe42cee2b03d1b4c8b34ceb15643174 (patch)
treecdd1d953b0fa16866b0fc62f0919d2e215a6ac08 /board/bachmann
parent8551b3661c6baf547c4c046864dd5001a95778b0 (diff)
downloadblackbird-obmc-uboot-f77dd6d7dbe42cee2b03d1b4c8b34ceb15643174.tar.gz
blackbird-obmc-uboot-f77dd6d7dbe42cee2b03d1b4c8b34ceb15643174.zip
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 <christian.gmeiner@gmail.com>
Diffstat (limited to 'board/bachmann')
-rw-r--r--board/bachmann/ot1200/ot1200.c3
1 files changed, 2 insertions, 1 deletions
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 <asm/imx-common/mxc_i2c.h>
#include <asm/imx-common/boot_mode.h>
#include <asm/arch/crm_regs.h>
+#include <asm/arch/sys_proto.h>
#include <mmc.h>
#include <fsl_esdhc.h>
#include <netdev.h>
@@ -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;
}
OpenPOWER on IntegriCloud