.. | .. |
---|
88 | 88 | void rockchip_pvtpll_calibrate_opp(struct rockchip_opp_info *info); |
---|
89 | 89 | void rockchip_pvtpll_add_length(struct rockchip_opp_info *info); |
---|
90 | 90 | 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, |
---|
92 | 92 | int *volt_sel, int *scale_sel); |
---|
93 | 93 | void rockchip_of_get_bin_sel(struct device *dev, struct device_node *np, |
---|
94 | 94 | int bin, int *scale_sel); |
---|
.. | .. |
---|
102 | 102 | char *porp_name, struct volt_rm_table **table); |
---|
103 | 103 | void rockchip_get_opp_data(const struct of_device_id *matches, |
---|
104 | 104 | struct rockchip_opp_info *info); |
---|
| 105 | +int rockchip_get_soc_info(struct device *dev, struct device_node *np, int *bin, |
---|
| 106 | + int *process); |
---|
105 | 107 | void rockchip_get_scale_volt_sel(struct device *dev, char *lkg_name, |
---|
106 | 108 | char *reg_name, int bin, int process, |
---|
107 | 109 | int *scale, int *volt_sel); |
---|
108 | 110 | struct opp_table *rockchip_set_opp_prop_name(struct device *dev, int process, |
---|
109 | 111 | 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); |
---|
110 | 115 | int rockchip_adjust_power_scale(struct device *dev, int scale); |
---|
111 | 116 | int rockchip_get_read_margin(struct device *dev, |
---|
112 | 117 | struct rockchip_opp_info *opp_info, |
---|
.. | .. |
---|
149 | 154 | |
---|
150 | 155 | static inline void rockchip_of_get_pvtm_sel(struct device *dev, |
---|
151 | 156 | struct device_node *np, |
---|
152 | | - char *reg_name, int process, |
---|
| 157 | + char *reg_name, int bin, int process, |
---|
153 | 158 | int *volt_sel, int *scale_sel) |
---|
154 | 159 | { |
---|
155 | 160 | } |
---|
.. | .. |
---|
191 | 196 | struct rockchip_opp_info *info) |
---|
192 | 197 | { |
---|
193 | 198 | } |
---|
| 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 | +} |
---|
194 | 205 | |
---|
195 | 206 | static inline void rockchip_get_scale_volt_sel(struct device *dev, |
---|
196 | 207 | char *lkg_name, char *reg_name, |
---|
.. | .. |
---|
206 | 217 | return ERR_PTR(-EOPNOTSUPP); |
---|
207 | 218 | } |
---|
208 | 219 | |
---|
| 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 | + |
---|
209 | 227 | static inline int rockchip_adjust_power_scale(struct device *dev, int scale) |
---|
210 | 228 | { |
---|
211 | 229 | return -EOPNOTSUPP; |
---|