From ed3df72db1e9472e8358f2fc57c3d6e9b37c4810 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 9 Feb 2011 01:17:55 +0000 Subject: mx31pdk: Use the new relocation scheme Signed-off-by: Fabio Estevam --- board/freescale/mx31pdk/mx31pdk.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'board/freescale/mx31pdk') diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 9f471692dd9..2756e5acd53 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -32,11 +32,17 @@ DECLARE_GLOBAL_DATA_PTR; int dram_init(void) +{ + /* dram_init must store complete ramsize in gd->ram_size */ + gd->ram_size = get_ram_size((volatile void *)CONFIG_SYS_SDRAM_BASE, + PHYS_SDRAM_1_SIZE); + return 0; +} + +void dram_init_banksize(void) { gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; - - return 0; } int board_init(void) -- cgit v1.2.3