diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-10-20 20:15:11 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut@gmail.com> | 2010-10-22 01:37:59 +0200 |
commit | d94bbbeb16d80abfff4bb333efb1251b92bc5c6f (patch) | |
tree | b3866f6a3cb62c8f65af8d5c3f0aa16417c80f44 /board/colibri_pxa270/colibri_pxa270.c | |
parent | caeb8c0ac2741a57d50de8654b9dc1bdb5001c8e (diff) |
PXA: colibri_pxa270: Fix for reloc
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/colibri_pxa270/colibri_pxa270.c')
-rw-r--r-- | board/colibri_pxa270/colibri_pxa270.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/board/colibri_pxa270/colibri_pxa270.c b/board/colibri_pxa270/colibri_pxa270.c index 8aa7067c73..191fb333e4 100644 --- a/board/colibri_pxa270/colibri_pxa270.c +++ b/board/colibri_pxa270/colibri_pxa270.c @@ -42,8 +42,9 @@ struct serial_device *default_serial_console (void) int board_init (void) { - /* memory and cpu-speed are setup before relocation */ - /* so we do _nothing_ here */ + /* We have RAM, disable cache */ + dcache_disable(); + icache_disable(); /* arch number of vpac270 */ gd->bd->bi_arch_number = MACH_TYPE_COLIBRI; @@ -54,13 +55,18 @@ int board_init (void) return 0; } -int dram_init (void) +extern void pxa_dram_init(void); +int dram_init(void) { - gd->bd->bi_dram[0].start = PHYS_SDRAM_1; + 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[0].size = PHYS_SDRAM_1_SIZE; - - return 0; } #ifdef CONFIG_CMD_USB |