| .. | .. |
|---|
| 103 | 103 | bool is_high_temp; |
|---|
| 104 | 104 | bool is_low_temp_enabled; |
|---|
| 105 | 105 | bool is_status_freq_fixed; |
|---|
| 106 | + bool boosted; |
|---|
| 106 | 107 | }; |
|---|
| 107 | 108 | |
|---|
| 108 | 109 | struct monitor_dev_profile { |
|---|
| 109 | 110 | enum monitor_dev_type type; |
|---|
| 110 | 111 | void *data; |
|---|
| 112 | + int (*low_temp_adjust_volt)(struct monitor_dev_info *info); |
|---|
| 111 | 113 | int (*low_temp_adjust)(struct monitor_dev_info *info, bool is_low); |
|---|
| 112 | 114 | int (*high_temp_adjust)(struct monitor_dev_info *info, bool is_low); |
|---|
| 113 | 115 | struct cpumask allowed_cpus; |
|---|
| .. | .. |
|---|
| 132 | 134 | int temp, unsigned long *state); |
|---|
| 133 | 135 | int rockchip_monitor_opp_set_rate(struct monitor_dev_info *info, |
|---|
| 134 | 136 | unsigned long target_freq); |
|---|
| 137 | +void rockchip_monitor_set_boosted(void); |
|---|
| 138 | +void rockchip_monitor_clear_boosted(void); |
|---|
| 135 | 139 | #else |
|---|
| 136 | 140 | static inline struct monitor_dev_info * |
|---|
| 137 | 141 | rockchip_system_monitor_register(struct device *dev, |
|---|
| .. | .. |
|---|
| 188 | 192 | { |
|---|
| 189 | 193 | return 0; |
|---|
| 190 | 194 | } |
|---|
| 195 | +static inline void rockchip_monitor_set_boosted(void) {}; |
|---|
| 196 | +static inline void rockchip_monitor_set_boosted(void) {}; |
|---|
| 191 | 197 | #endif /* CONFIG_ROCKCHIP_SYSTEM_MONITOR */ |
|---|
| 192 | 198 | |
|---|
| 193 | 199 | #endif |
|---|