rk2928: add empty pmu.h, make driver happy
author黄涛 <huangtao@rock-chips.com>
Thu, 9 Aug 2012 04:05:09 +0000 (12:05 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 9 Aug 2012 04:05:37 +0000 (12:05 +0800)
arch/arm/mach-rk2928/include/mach/pmu.h [new file with mode: 0644]

diff --git a/arch/arm/mach-rk2928/include/mach/pmu.h b/arch/arm/mach-rk2928/include/mach/pmu.h
new file mode 100644 (file)
index 0000000..a576122
--- /dev/null
@@ -0,0 +1,40 @@
+#ifndef __MACH_PMU_H
+#define __MACH_PMU_H
+
+enum pmu_power_domain {
+       PD_A9_0 = 0,
+       PD_A9_1,
+       PD_ALIVE,
+       PD_RTC,
+       PD_SCU,
+       PD_CPU,
+       PD_PERI = 6,
+       PD_VIO,
+       PD_VIDEO,
+       PD_VCODEC = PD_VIDEO,
+       PD_GPU,
+       PD_DBG,
+};
+
+static inline bool pmu_power_domain_is_on(enum pmu_power_domain pd)
+{
+       return true;
+}
+
+static inline void pmu_set_power_domain(enum pmu_power_domain pd, bool on)
+{
+}
+
+enum pmu_idle_req {
+       IDLE_REQ_CPU = 0,
+       IDLE_REQ_PERI,
+       IDLE_REQ_GPU,
+       IDLE_REQ_VIDEO,
+       IDLE_REQ_VIO,
+};
+
+static inline void pmu_set_idle_request(enum pmu_idle_req req, bool idle)
+{
+}
+
+#endif