Lines Matching full:vsel
39 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */
274 * select field in its control register. We use tables indexed by VSEL
277 * Note that VSEL values for VAUX2 changed in twl5030 and newer silicon;
281 * VSEL values documented as "TI cannot support these values" are flagged
386 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl4030ldo_get_voltage_sel() local
388 if (vsel < 0) in twl4030ldo_get_voltage_sel()
389 return vsel; in twl4030ldo_get_voltage_sel()
391 vsel &= info->table_len - 1; in twl4030ldo_get_voltage_sel()
392 return vsel; in twl4030ldo_get_voltage_sel()
415 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage() local
417 twlreg_write(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE_SMPS_4030, vsel); in twl4030smps_set_voltage()
425 int vsel; in twl4030smps_get_voltage() local
427 vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, in twl4030smps_get_voltage()
430 return vsel * 12500 + 600000; in twl4030smps_get_voltage()