| .. | .. |
|---|
| 6 | 6 | #define __ROCKCHIP_CPUFREQ_H |
|---|
| 7 | 7 | |
|---|
| 8 | 8 | #if IS_ENABLED(CONFIG_ARM_ROCKCHIP_CPUFREQ) |
|---|
| 9 | | -unsigned int rockchip_cpufreq_adjust_target(int cpu, unsigned int freq); |
|---|
| 10 | | -int rockchip_cpufreq_check_rate_volt(struct device *dev); |
|---|
| 11 | | -int rockchip_cpufreq_set_opp_info(struct device *dev); |
|---|
| 12 | | -void rockchip_cpufreq_put_opp_info(struct device *dev); |
|---|
| 13 | 9 | int rockchip_cpufreq_adjust_power_scale(struct device *dev); |
|---|
| 14 | | -int rockchip_cpufreq_suspend(struct cpufreq_policy *policy); |
|---|
| 10 | +int rockchip_cpufreq_opp_set_rate(struct device *dev, unsigned long target_freq); |
|---|
| 15 | 11 | #else |
|---|
| 16 | | -static inline unsigned int rockchip_cpufreq_adjust_target(int cpu, |
|---|
| 17 | | - unsigned int freq) |
|---|
| 18 | | -{ |
|---|
| 19 | | - return freq; |
|---|
| 20 | | -} |
|---|
| 21 | | - |
|---|
| 22 | | -static inline int rockchip_cpufreq_check_rate_volt(struct device *dev) |
|---|
| 23 | | -{ |
|---|
| 24 | | - return -ENOTSUPP; |
|---|
| 25 | | -} |
|---|
| 26 | | - |
|---|
| 27 | | -static inline int rockchip_cpufreq_set_opp_info(struct device *dev) |
|---|
| 28 | | -{ |
|---|
| 29 | | - return -ENOTSUPP; |
|---|
| 30 | | -} |
|---|
| 31 | | - |
|---|
| 32 | | -static inline void rockchip_cpufreq_put_opp_info(struct device *dev) |
|---|
| 33 | | -{ |
|---|
| 34 | | -} |
|---|
| 35 | | - |
|---|
| 36 | 12 | static inline int rockchip_cpufreq_adjust_power_scale(struct device *dev) |
|---|
| 37 | 13 | { |
|---|
| 38 | | - return -ENOTSUPP; |
|---|
| 14 | + return -EOPNOTSUPP; |
|---|
| 39 | 15 | } |
|---|
| 40 | 16 | |
|---|
| 41 | | -static inline int rockchip_cpufreq_suspend(struct cpufreq_policy *policy) |
|---|
| 17 | +static inline int rockchip_cpufreq_opp_set_rate(struct device *dev, |
|---|
| 18 | + unsigned long target_freq) |
|---|
| 42 | 19 | { |
|---|
| 43 | | - return -ENOTSUPP; |
|---|
| 20 | + return -EOPNOTSUPP; |
|---|
| 44 | 21 | } |
|---|
| 45 | | - |
|---|
| 46 | 22 | #endif /* CONFIG_ARM_ROCKCHIP_CPUFREQ */ |
|---|
| 47 | 23 | |
|---|
| 48 | 24 | #endif |
|---|