]> git.sur5r.net Git - u-boot/blobdiff - board/zipitz2/zipitz2.c
nios2: implement get_ticks and get_tbclk
[u-boot] / board / zipitz2 / zipitz2.c
index f7edc4c8cabe3189e0d4bd426726965c980e1e20..b093c2f51f89fb73a129d5aa764f3a60472f79ef 100644 (file)
@@ -27,6 +27,7 @@
 #include <command.h>
 #include <serial.h>
 #include <asm/arch/hardware.h>
+#include <asm/arch/pxa.h>
 #include <spi.h>
 #include <asm/io.h>
 
@@ -44,10 +45,11 @@ inline void lcd_start(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 Lubbock-Board */
+       /* arch number of Z2 */
        gd->bd->bi_arch_number = MACH_TYPE_ZIPIT2;
 
        /* adress of boot parameters */
@@ -59,24 +61,22 @@ int board_init (void)
        return 0;
 }
 
-int board_late_init(void)
+struct serial_device *default_serial_console (void)
 {
-       setenv("stdout", "serial");
-       setenv("stderr", "serial");
-       return 0;
+       return &serial_stuart_device;
 }
 
-struct serial_device *default_serial_console (void)
+int dram_init(void)
 {
-       return &serial_stuart_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;
 }
 
 #ifdef CONFIG_CMD_SPI