diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-02-09 01:17:55 +0000 |
---|---|---|
committer | Albert Aribaud <albert.aribaud@free.fr> | 2011-02-21 08:30:54 +0100 |
commit | ed3df72db1e9472e8358f2fc57c3d6e9b37c4810 (patch) | |
tree | 3e2b3f2a42560c50cdd1bae0eb97c10772f71b0c /board/freescale/mx31pdk/mx31pdk.c | |
parent | 0b509519a67951d8568e59f76d957e60706bcc18 (diff) | |
download | u-boot-imx-ed3df72db1e9472e8358f2fc57c3d6e9b37c4810.zip u-boot-imx-ed3df72db1e9472e8358f2fc57c3d6e9b37c4810.tar.gz u-boot-imx-ed3df72db1e9472e8358f2fc57c3d6e9b37c4810.tar.bz2 |
mx31pdk: Use the new relocation scheme
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'board/freescale/mx31pdk/mx31pdk.c')
-rw-r--r-- | board/freescale/mx31pdk/mx31pdk.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 9f47169..2756e5a 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -33,10 +33,16 @@ 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) |