From e3e12f52b214121840b44c91de5b3e5af5d3eb84 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 06 Nov 2023 03:04:41 +0000
Subject: [PATCH] rk3568 rt init

---
 kernel/include/soc/rockchip/rockchip_system_monitor.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/kernel/include/soc/rockchip/rockchip_system_monitor.h b/kernel/include/soc/rockchip/rockchip_system_monitor.h
index 1f8bffc..5eec720 100644
--- a/kernel/include/soc/rockchip/rockchip_system_monitor.h
+++ b/kernel/include/soc/rockchip/rockchip_system_monitor.h
@@ -103,11 +103,13 @@
 	bool is_high_temp;
 	bool is_low_temp_enabled;
 	bool is_status_freq_fixed;
+	bool boosted;
 };
 
 struct monitor_dev_profile {
 	enum monitor_dev_type type;
 	void *data;
+	int (*low_temp_adjust_volt)(struct monitor_dev_info *info);
 	int (*low_temp_adjust)(struct monitor_dev_info *info, bool is_low);
 	int (*high_temp_adjust)(struct monitor_dev_info *info, bool is_low);
 	struct cpumask allowed_cpus;
@@ -132,6 +134,8 @@
 					  int temp, unsigned long *state);
 int rockchip_monitor_opp_set_rate(struct monitor_dev_info *info,
 				  unsigned long target_freq);
+void rockchip_monitor_set_boosted(void);
+void rockchip_monitor_clear_boosted(void);
 #else
 static inline struct monitor_dev_info *
 rockchip_system_monitor_register(struct device *dev,
@@ -188,6 +192,8 @@
 {
 	return 0;
 }
+static inline void rockchip_monitor_set_boosted(void) {};
+static inline void rockchip_monitor_set_boosted(void) {};
 #endif /* CONFIG_ROCKCHIP_SYSTEM_MONITOR */
 
 #endif

--
Gitblit v1.6.2