summaryrefslogtreecommitdiffstats
path: root/board/bachmann/ot1200/ot1200.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/bachmann/ot1200/ot1200.c')
-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