rk3188: add pmu support

This commit is contained in:
黄涛
2013-01-16 16:46:13 +08:00
parent fbe9cde1f9
commit 4a29c04b32
2 changed files with 11 additions and 0 deletions

View 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)

View 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