Lines Matching full:vsel
227 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument
236 if (dcdc->dvs_gpiod && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
239 if (dcdc->dvs_gpiod && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
243 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel()
246 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel()
257 * If this VSEL is higher than the last one we've seen then in wm831x_buckv_set_voltage_sel()
258 * remember it as the DVS VSEL. This is optimised for CPUfreq in wm831x_buckv_set_voltage_sel()
262 if (vsel > dcdc->dvs_vsel) { in wm831x_buckv_set_voltage_sel()
265 vsel); in wm831x_buckv_set_voltage_sel()
267 dcdc->dvs_vsel = vsel; in wm831x_buckv_set_voltage_sel()
270 "Failed to set DCDC DVS VSEL: %d\n", ret); in wm831x_buckv_set_voltage_sel()
282 int vsel; in wm831x_buckv_set_suspend_voltage() local
284 vsel = regulator_map_voltage_linear_range(rdev, uV, uV); in wm831x_buckv_set_suspend_voltage()
285 if (vsel < 0) in wm831x_buckv_set_suspend_voltage()
286 return vsel; in wm831x_buckv_set_suspend_voltage()
288 return wm831x_set_bits(wm831x, reg, WM831X_DC1_SLP_VSEL_MASK, vsel); in wm831x_buckv_set_suspend_voltage()
443 dev_err(wm831x->dev, "Failed to read ON VSEL: %d\n", ret); in wm831x_buckv_probe()
450 dev_err(wm831x->dev, "Failed to read DVS VSEL: %d\n", ret); in wm831x_buckv_probe()