rk3188: fix cpu aix init
author黄涛 <huangtao@rock-chips.com>
Wed, 23 Jan 2013 15:09:20 +0000 (23:09 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 23 Jan 2013 15:09:20 +0000 (23:09 +0800)
arch/arm/mach-rk30/common.c

index 2822b581af1552b3483cfe4e6ee0bcf683c1979a..8c381862348ae4413392333fbace3ef80d7eb200 100755 (executable)
 
 static void __init rk30_cpu_axi_init(void)
 {
-#ifndef CONFIG_ARCH_RK3188
+#ifdef CONFIG_ARCH_RK3188
+       writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x1008);    // dmac1
+       writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x2008);    // cpu0
+       writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x2088);    // cpu1r
+       writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x2108);    // cpu1w
+#else
        writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x0088);    // cpu0
        writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x0108);    // dmac1
        writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x0188);    // cpu1r
        writel_relaxed(0x0, RK30_CPU_AXI_BUS_BASE + 0x0388);    // cpu1w
+#endif
 #ifdef CONFIG_RK29_VMAC
        writel_relaxed(0xa, RK30_CPU_AXI_BUS_BASE + 0x4008);    // peri
 #else
@@ -44,7 +50,6 @@ static void __init rk30_cpu_axi_init(void)
 #endif
        writel_relaxed(0x3f, RK30_CPU_AXI_BUS_BASE + 0x0014);   // memory scheduler read latency
        dsb();
-#endif
 }
 
 static void __init rk30_io_drive_strength_init(void)