diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-10-20 21:04:13 +0200 |
---|---|---|
committer | Marek Vasut <marek.vasut@gmail.com> | 2010-10-22 01:37:59 +0200 |
commit | d2942ee5e354138bfa2778e2ab35e480b9f1ec33 (patch) | |
tree | 5edfda7c471780ab0e010d0597e5ba326eabfd9e /board/palmld/palmld.c | |
parent | 3c43ca2ae2a7ee28eca49369ff11da4996eedad6 (diff) | |
download | u-boot-imx-d2942ee5e354138bfa2778e2ab35e480b9f1ec33.zip u-boot-imx-d2942ee5e354138bfa2778e2ab35e480b9f1ec33.tar.gz u-boot-imx-d2942ee5e354138bfa2778e2ab35e480b9f1ec33.tar.bz2 |
PXA: palmld: Fix for reloc
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/palmld/palmld.c')
-rw-r--r-- | board/palmld/palmld.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/board/palmld/palmld.c b/board/palmld/palmld.c index 4f0087e..5588fe7 100644 --- a/board/palmld/palmld.c +++ b/board/palmld/palmld.c @@ -33,7 +33,11 @@ DECLARE_GLOBAL_DATA_PTR; int board_init(void) { - /* arch number of Lubbock-Board */ + /* We have RAM, disable cache */ + dcache_disable(); + icache_disable(); + + /* arch number of PalmLD */ gd->bd->bi_arch_number = MACH_TYPE_PALMLD; /* adress of boot parameters */ @@ -52,12 +56,18 @@ struct serial_device *default_serial_console(void) return &serial_ffuart_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[0].size = PHYS_SDRAM_1_SIZE; - - return 0; } ulong board_flash_get_legacy(ulong base, int banknum, flash_info_t *info) |