hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/include/soc/rockchip/rockchip_opp_select.h
....@@ -88,7 +88,7 @@
8888 void rockchip_pvtpll_calibrate_opp(struct rockchip_opp_info *info);
8989 void rockchip_pvtpll_add_length(struct rockchip_opp_info *info);
9090 void rockchip_of_get_pvtm_sel(struct device *dev, struct device_node *np,
91
- char *reg_name, int process,
91
+ char *reg_name, int bin, int process,
9292 int *volt_sel, int *scale_sel);
9393 void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np,
9494 int bin, int *scale_sel);
....@@ -102,11 +102,16 @@
102102 char *porp_name, struct volt_rm_table **table);
103103 void rockchip_get_opp_data(const struct of_device_id *matches,
104104 struct rockchip_opp_info *info);
105
+int rockchip_get_soc_info(struct device *dev, struct device_node *np, int *bin,
106
+ int *process);
105107 void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name,
106108 char *reg_name, int bin, int process,
107109 int *scale, int *volt_sel);
108110 struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process,
109111 int volt_sel);
112
+struct opp_table *rockchip_set_opp_supported_hw(struct device *dev,
113
+ struct device_node *np,
114
+ int bin, int volt_sel);
110115 int rockchip_adjust_power_scale(struct device *dev, int scale);
111116 int rockchip_get_read_margin(struct device *dev,
112117 struct rockchip_opp_info *opp_info,
....@@ -149,7 +154,7 @@
149154
150155 static inline void rockchip_of_get_pvtm_sel(struct device *dev,
151156 struct device_node *np,
152
- char *reg_name, int process,
157
+ char *reg_name, int bin, int process,
153158 int *volt_sel, int *scale_sel)
154159 {
155160 }
....@@ -191,6 +196,12 @@
191196 struct rockchip_opp_info *info)
192197 {
193198 }
199
+static inline int rockchip_get_soc_info(struct device *dev,
200
+ struct device_node *np, int *bin,
201
+ int *process)
202
+{
203
+ return -EOPNOTSUPP;
204
+}
194205
195206 static inline void rockchip_get_scale_volt_sel(struct device *dev,
196207 char *lkg_name, char *reg_name,
....@@ -206,6 +217,13 @@
206217 return ERR_PTR(-EOPNOTSUPP);
207218 }
208219
220
+static inline struct opp_table *rockchip_set_opp_supported_hw(struct device *dev,
221
+ struct device_node *np,
222
+ int bin, int volt_sel)
223
+{
224
+ return ERR_PTR(-EOPNOTSUPP);
225
+}
226
+
209227 static inline int rockchip_adjust_power_scale(struct device *dev, int scale)
210228 {
211229 return -EOPNOTSUPP;