hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/include/soc/rockchip/rockchip_opp_select.h
....@@ -78,6 +78,8 @@
7878 u32 low_rm;
7979 u32 current_rm;
8080 u32 target_rm;
81
+ u32 pvtpll_clk_id;
82
+ bool pvtpll_low_temp;
8183 };
8284
8385 #if IS_ENABLED(CONFIG_ROCKCHIP_OPP)
....@@ -87,6 +89,7 @@
8789 int *volt_sel, int *scale_sel);
8890 void rockchip_pvtpll_calibrate_opp(struct rockchip_opp_info *info);
8991 void rockchip_pvtpll_add_length(struct rockchip_opp_info *info);
92
+void rockchip_init_pvtpll_table(struct rockchip_opp_info *info, int bin);
9093 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
9194 char *reg_name, int bin, int process,
9295 int *volt_sel, int *scale_sel);
....@@ -130,6 +133,8 @@
130133 int rockchip_init_opp_table(struct device *dev,
131134 struct rockchip_opp_info *info,
132135 char *lkg_name, char *reg_name);
136
+void rockchip_uninit_opp_table(struct device *dev,
137
+ struct rockchip_opp_info *info);
133138 #else
134139 static inline int rockchip_of_get_leakage(struct device *dev, char *lkg_name,
135140 int *leakage)
....@@ -149,6 +154,11 @@
149154 }
150155
151156 static inline void rockchip_pvtpll_add_length(struct rockchip_opp_info *info)
157
+{
158
+}
159
+
160
+static inline void rockchip_init_pvtpll_table(struct rockchip_opp_info *info,
161
+ int bin)
152162 {
153163 }
154164
....@@ -266,6 +276,11 @@
266276 return -EOPNOTSUPP;
267277 }
268278
279
+static inline void rockchip_uninit_opp_table(struct device *dev,
280
+ struct rockchip_opp_info *info)
281
+{
282
+}
283
+
269284 #endif /* CONFIG_ROCKCHIP_OPP */
270285
271286 #endif