Lines Matching full:vsel
40 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */
275 * select field in its control register. We use tables indexed by VSEL
278 * Note that VSEL values for VAUX2 changed in twl5030 and newer silicon;
282 * VSEL values documented as "TI cannot support these values" are flagged
387 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local
389 if (vsel < 0) in twl4030ldo_get_voltage_sel()
390 return vsel; in twl4030ldo_get_voltage_sel()
392 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel()
393 return vsel; in twl4030ldo_get_voltage_sel()
416 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local
418 twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS_4030, vsel); in twl4030smps_set_voltage()
426 int vsel; in twl4030smps_get_voltage() local
428 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, in twl4030smps_get_voltage()
431 return vsel * 12500 + 600000; in twl4030smps_get_voltage()