diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-10-03 01:05:55 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-19 23:05:09 +0200 |
commit | 20ae5193e325ad005ca9e15377838e0763069658 (patch) | |
tree | 69b58544ce58de4073edf928177dcf6a4a79415d /board/balloon3/balloon3.c | |
parent | 24e84c3dcbfc732888fecc502b7b560b4e372876 (diff) |
PXA: Fix Balloon3 for Reloc
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/balloon3/balloon3.c')
-rw-r--r-- | board/balloon3/balloon3.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/board/balloon3/balloon3.c b/board/balloon3/balloon3.c index 2d6eabee73..26e34e99d7 100644 --- a/board/balloon3/balloon3.c +++ b/board/balloon3/balloon3.c @@ -36,6 +36,10 @@ void balloon3_init_fpga(void); int board_init(void) { + /* We have RAM, disable cache */ + dcache_disable(); + icache_disable(); + /* arch number of vpac270 */ gd->bd->bi_arch_number = MACH_TYPE_BALLOON3; @@ -53,8 +57,16 @@ struct serial_device *default_serial_console(void) return &serial_stuart_device; } +extern void pxa_dram_init(void); int dram_init(void) { + pxa_dram_init(); + gd->ram_size = PHYS_SDRAM_1_SIZE; + return 0; +} + +void dram_init_banksize(void) +{ gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[1].start = PHYS_SDRAM_2; gd->bd->bi_dram[2].start = PHYS_SDRAM_3; @@ -62,8 +74,6 @@ int dram_init(void) gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE; gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE; - - return 0; } #ifdef CONFIG_CMD_USB |