]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/balloon3/balloon3.c
PXA: Fix Balloon3 for Reloc
[karo-tx-uboot.git] / board / balloon3 / balloon3.c
index 2d6eabee738304a29697aa398cf85168cf83d7ca..26e34e99d7db071057705c82e9f001d1da3d8154 100644 (file)
@@ -36,6 +36,10 @@ void balloon3_init_fpga(void);
 
 int board_init(void)
 {
+       /* We have RAM, disable cache */
+       dcache_disable();
+       icache_disable();
+
        /* arch number of vpac270 */
        gd->bd->bi_arch_number = MACH_TYPE_BALLOON3;
 
@@ -53,7 +57,15 @@ struct serial_device *default_serial_console(void)
        return &serial_stuart_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[1].start = PHYS_SDRAM_2;
@@ -62,8 +74,6 @@ int dram_init(void)
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
        gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
        gd->bd->bi_dram[2].size = PHYS_SDRAM_3_SIZE;
-
-       return 0;
 }
 
 #ifdef CONFIG_CMD_USB