From: 黄涛 Date: Thu, 9 Aug 2012 04:05:09 +0000 (+0800) Subject: rk2928: add empty pmu.h, make driver happy X-Git-Tag: firefly_0821_release~8912^2~26 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=864efa14152255e349744f2dcaaf4ac43ed936b3;p=firefly-linux-kernel-4.4.55.git rk2928: add empty pmu.h, make driver happy --- diff --git a/arch/arm/mach-rk2928/include/mach/pmu.h b/arch/arm/mach-rk2928/include/mach/pmu.h new file mode 100644 index 000000000000..a57612280bc6 --- /dev/null +++ b/arch/arm/mach-rk2928/include/mach/pmu.h @@ -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