mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
rk3188: add pmu support
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user