rk3188: add pmu support
author黄涛 <huangtao@rock-chips.com>
Wed, 16 Jan 2013 08:46:13 +0000 (16:46 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 16 Jan 2013 08:46:21 +0000 (16:46 +0800)
arch/arm/mach-rk30/pmu.c
arch/arm/mach-rk3188/Makefile

index 425dab2741aae36b3dae561b75c0803e871ef6ac..6417832787de12c599dbd7fdb3f863d3f84e394f 100644 (file)
@@ -73,6 +73,16 @@ void pmu_set_idle_request(enum pmu_idle_req req, bool idle)
        u32 val;
        unsigned long flags;
 
+#if defined(CONFIG_ARCH_RK3188)
+       if (req == IDLE_REQ_CORE) {
+               idle_mask = 1 << 15;
+               idle_target = idle << 15;
+       } else if (req == IDLE_REQ_DMA) {
+               idle_mask = 1 << 14;
+               idle_target = idle << 14;
+       }
+#endif
+
        spin_lock_irqsave(&pmu_misc_con1_lock, flags);
        val = readl_relaxed(RK30_PMU_BASE + PMU_MISC_CON1);
        if (idle)
index ec0e8a84534c8ba21d06d8766db4e0839c627507..783a41b85e908a24e632ee78e68dfc3021620e8a 100644 (file)
@@ -4,6 +4,7 @@ obj-y += ../plat-rk/clock.o
 obj-y += clock_data.o
 obj-y += ../mach-rk30/ddr.o
 CFLAGS_ddr.o += -mthumb
+obj-y += ../mach-rk30/pmu.o
 obj-y += ../mach-rk30/reset.o
 endif
 obj-y += ../mach-rk30/common.o