]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/palmtc/palmtc.c
tegra: add pin_mux_spi() board initialization function
[karo-tx-uboot.git] / board / palmtc / palmtc.c
index 04cb33e6a89c3fd58d673be07d2eade3f03edc0d..4adf152a4edc02e78863ca44d35641249aff1666 100644 (file)
@@ -23,6 +23,7 @@
 #include <command.h>
 #include <serial.h>
 #include <asm/io.h>
+#include <asm/arch/pxa.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -32,6 +33,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;
 
@@ -52,8 +57,14 @@ struct serial_device *default_serial_console(void)
 }
 
 int dram_init(void)
+{
+       pxa2xx_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;
 }