]> git.sur5r.net Git - u-boot/blobdiff - board/palmld/palmld.c
microblaze: Fix reset function
[u-boot] / board / palmld / palmld.c
index 4f0087ea27b142c74003a0422311721c918578c9..57b4f5f62326ec0cae92c8b54df9ef1487d45b2d 100644 (file)
@@ -23,6 +23,7 @@
 #include <command.h>
 #include <serial.h>
 #include <asm/arch/pxa-regs.h>
+#include <asm/arch/pxa.h>
 #include <asm/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
@@ -33,7 +34,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 */
@@ -47,17 +52,17 @@ int board_init(void)
        return 0;
 }
 
-struct serial_device *default_serial_console(void)
+int dram_init(void)
 {
-       return &serial_ffuart_device;
+       pxa2xx_dram_init();
+       gd->ram_size = PHYS_SDRAM_1_SIZE;
+       return 0;
 }
 
-int dram_init(void)
+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)