X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fpalmtc%2Fpalmtc.c;h=25186aefa8c1360014e5c3bf90b2e7fee2a85a0f;hb=43bd194c42031756b954224455d4e7b0303339a4;hp=04cb33e6a89c3fd58d673be07d2eade3f03edc0d;hpb=b18815752f3d6db27877606e4e069e3f6cfe3a19;p=oweals%2Fu-boot.git diff --git a/board/palmtc/palmtc.c b/board/palmtc/palmtc.c index 04cb33e6a8..25186aefa8 100644 --- a/board/palmtc/palmtc.c +++ b/board/palmtc/palmtc.c @@ -32,6 +32,10 @@ DECLARE_GLOBAL_DATA_PTR; int board_init(void) { + /* We have RAM, disable cache */ + dcache_disable(); + icache_disable(); + /* Arch number of Palm Tungsten|C */ gd->bd->bi_arch_number = MACH_TYPE_PALMTC; @@ -51,9 +55,16 @@ 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; }