diff options
author | Finley Xiao <finley.xiao@rock-chips.com> | 2019-01-28 14:28:22 +0800 |
---|---|---|
committer | Finley Xiao <finley.xiao@rock-chips.com> | 2019-01-28 14:33:33 +0800 |
commit | 596651a047071f0cec9bc3a94fc2aa7f7a8946e8 (patch) | |
tree | 80c99233ec788dfbb48447780463cb24372f815f /include | |
parent | 27f039b43ada8d0301867505ce9a91d8b5c604bc (diff) |
soc: rockchip: opp_select: Add rockchip_cpu_suspend_low_temp_adjust()
If support wide temperature, it necessary to set voltage to low temperature
voltage before system suspend, so that it can resume successfully at low
temperature.
Change-Id: Ie6787092c9510788054217bd830b5ae1e4dd6bc2
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/soc/rockchip/rockchip_opp_select.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/soc/rockchip/rockchip_opp_select.h b/include/soc/rockchip/rockchip_opp_select.h index 1324feebbf39..ed4495355d94 100644 --- a/include/soc/rockchip/rockchip_opp_select.h +++ b/include/soc/rockchip/rockchip_opp_select.h @@ -44,6 +44,7 @@ struct thermal_opp_info { int high_temp_max_volt; bool is_low_temp; bool is_high_temp; + bool is_low_temp_enabled; }; #ifdef CONFIG_ROCKCHIP_OPP @@ -74,6 +75,7 @@ rockchip_register_thermal_notifier(struct device *dev, void rockchip_unregister_thermal_notifier(struct thermal_opp_info *info); int rockchip_cpu_low_temp_adjust(struct thermal_opp_info *info, bool is_low); +int rockchip_cpu_suspend_low_temp_adjust(struct thermal_opp_info *info); int rockchip_cpu_high_temp_adjust(struct thermal_opp_info *info, bool is_high); int rockchip_dev_low_temp_adjust(struct thermal_opp_info *info, @@ -156,6 +158,12 @@ static inline int rockchip_cpu_low_temp_adjust(struct thermal_opp_info *info, return -ENOTSUPP; } +static inline int +rockchip_cpu_suspend_low_temp_adjust(struct thermal_opp_info *info) +{ + return -ENOTSUPP; +} + static inline int rockchip_cpu_high_temp_adjust(struct thermal_opp_info *info, bool is_high) { |