Home
last modified time | relevance | path

Searched refs:vsel (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v4.19/drivers/regulator/
Dtwl6030-regulator.c288 int vsel = twlreg_read(info, TWL_MODULE_PM_RECEIVER, VREG_VOLTAGE); in twl6030ldo_get_voltage_sel() local
290 return vsel; in twl6030ldo_get_voltage_sel()
415 int vsel = 0; in twl6030smps_map_voltage() local
420 vsel = 0; in twl6030smps_map_voltage()
422 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage()
423 vsel++; in twl6030smps_map_voltage()
429 vsel = 62; in twl6030smps_map_voltage()
431 vsel = 61; in twl6030smps_map_voltage()
433 vsel = 60; in twl6030smps_map_voltage()
435 vsel = 59; in twl6030smps_map_voltage()
[all …]
Dwm831x-dcdc.c221 u16 vsel; in wm831x_buckv_map_voltage() local
224 vsel = 0; in wm831x_buckv_map_voltage()
226 vsel = DIV_ROUND_UP(min_uV - 600000, 12500) + 8; in wm831x_buckv_map_voltage()
230 if (wm831x_buckv_list_voltage(rdev, vsel) > max_uV) in wm831x_buckv_map_voltage()
233 return vsel; in wm831x_buckv_map_voltage()
255 unsigned vsel) in wm831x_buckv_set_voltage_sel() argument
264 if (dcdc->dvs_gpio && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
267 if (dcdc->dvs_gpio && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
271 ret = wm831x_set_bits(wm831x, on_reg, WM831X_DC1_ON_VSEL_MASK, vsel); in wm831x_buckv_set_voltage_sel()
274 dcdc->on_vsel = vsel; in wm831x_buckv_set_voltage_sel()
[all …]
Dtwl-regulator.c386 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()
Dsy8106a-regulator.c77 unsigned int reg, vsel; in sy8106a_i2c_probe() local
117 vsel = (chip->fixed_voltage / 1000 - SY8106A_MIN_MV) / in sy8106a_i2c_probe()
121 vsel | SY8106A_GO_BIT); in sy8106a_i2c_probe()
Dtps51632-regulator.c124 int vsel; in tps51632_init_dcdc() local
130 vsel = TPS51632_VOLT_VSEL(pdata->base_voltage_uV); in tps51632_init_dcdc()
131 ret = regmap_write(tps->regmap, TPS51632_VOLTAGE_BASE_REG, vsel); in tps51632_init_dcdc()
154 vsel = TPS51632_VOLT_VSEL(pdata->max_voltage_uV); in tps51632_init_dcdc()
156 vsel); in tps51632_init_dcdc()
Dtps80031-regulator.c179 unsigned vsel) in tps80031_dcdc_set_voltage_sel() argument
196 ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
205 ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); in tps80031_dcdc_set_voltage_sel()
216 uint8_t vsel = 0; in tps80031_dcdc_get_voltage_sel() local
221 ri->rinfo->force_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
228 if (!(vsel & SMPS_CMD_MASK)) in tps80031_dcdc_get_voltage_sel()
229 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
232 ri->rinfo->volt_reg, &vsel); in tps80031_dcdc_get_voltage_sel()
238 return vsel & SMPS_VSEL_MASK; in tps80031_dcdc_get_voltage_sel()
Drc5t583-regulator.c58 int vsel = regulator_get_voltage_sel_regmap(rdev); in rc5t583_regulator_enable_time() local
59 int curr_uV = regulator_list_voltage_linear(rdev, vsel); in rc5t583_regulator_enable_time()
Dtps65910-regulator.c603 int id = rdev_get_id(dev), vsel; in tps65910_set_voltage_dcdc_sel() local
611 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
616 tps65910_reg_write(pmic->mfd, TPS65910_VDD1_OP, vsel); in tps65910_set_voltage_dcdc_sel()
622 vsel = (selector % VDD1_2_NUM_VOLT_FINE) + 3; in tps65910_set_voltage_dcdc_sel()
627 tps65910_reg_write(pmic->mfd, TPS65910_VDD2_OP, vsel); in tps65910_set_voltage_dcdc_sel()
630 vsel = selector + 3; in tps65910_set_voltage_dcdc_sel()
631 tps65910_reg_write(pmic->mfd, TPS65911_VDDCTRL_OP, vsel); in tps65910_set_voltage_dcdc_sel()
Dtps62360-regulator.c124 int vsel; in tps62360_dcdc_get_voltage_sel() local
134 vsel = (int)data & tps->voltage_reg_mask; in tps62360_dcdc_get_voltage_sel()
135 return vsel; in tps62360_dcdc_get_voltage_sel()
Dmax8973-regulator.c188 unsigned vsel) in max8973_dcdc_set_voltage_sel() argument
201 found = find_voltage_set_register(max, vsel, in max8973_dcdc_set_voltage_sel()
206 MAX8973_VOUT_MASK, vsel); in max8973_dcdc_set_voltage_sel()
213 max->curr_vout_val[gpio_val] = vsel; in max8973_dcdc_set_voltage_sel()
Dlp8788-buck.c114 pinstate = dvs->vsel == DVS_SEL_V0 ? DVS_LOW : DVS_HIGH; in lp8788_buck1_set_dvs()
127 switch (dvs->vsel) { in lp8788_buck2_set_dvs()
/Linux-v4.19/arch/arm/mach-omap2/
Domap_twl.c52 static unsigned long twl4030_vsel_to_uv(const u8 vsel) in twl4030_vsel_to_uv() argument
54 return (((vsel * 125) + 6000)) * 100; in twl4030_vsel_to_uv()
62 static unsigned long twl6030_vsel_to_uv(const u8 vsel) in twl6030_vsel_to_uv() argument
78 if (!vsel) in twl6030_vsel_to_uv()
87 if (vsel == 0x3A) in twl6030_vsel_to_uv()
91 return ((((vsel - 1) * 1266) + 70900)) * 10; in twl6030_vsel_to_uv()
93 return ((((vsel - 1) * 1266) + 60770)) * 10; in twl6030_vsel_to_uv()
Dvp.c17 char vsel; in _vp_set_init_voltage() local
19 vsel = voltdm->pmic->uv_to_vsel(volt); in _vp_set_init_voltage()
25 vpconfig |= vsel << __ffs(vp->common->vpconfig_initvoltage_mask); in _vp_set_init_voltage()
Dvoltage.h138 unsigned long (*vsel_to_uv) (const u8 vsel);
/Linux-v4.19/drivers/media/dvb-frontends/
Dlnbh25.c95 const char *vsel; in lnbh25_set_voltage() local
107 vsel = "Off"; in lnbh25_set_voltage()
111 vsel = "13V"; in lnbh25_set_voltage()
115 vsel = "18V"; in lnbh25_set_voltage()
123 __func__, vsel, priv->i2c_address, in lnbh25_set_voltage()
/Linux-v4.19/drivers/clk/samsung/
Dclk-pll.h104 .vsel = (_vsel), \
117 .vsel = (_vsel), \
131 unsigned int vsel; member
/Linux-v4.19/Documentation/devicetree/bindings/regulator/
Dact8945a-regulator.txt7 - active-semi,vsel-high: Indicates if the VSEL pin is set to logic-high.
27 active-semi,vsel-high;
Dact8865-regulator.txt11 - active-semi,vsel-high: Indicates the VSEL pin is high.
54 active-semi,vsel-high;
Dlp872x.txt29 - ti,dvs-vsel: DVS selector. 0 = SEL_V1, 1 = SEL_V2.
58 ti,dvs-vsel = /bits/ 8 <1>; /* SEL_V2 */
/Linux-v4.19/include/linux/mfd/
Dlp8788.h171 enum lp8788_dvs_sel vsel; member
181 enum lp8788_dvs_sel vsel; member
/Linux-v4.19/arch/arm/boot/dts/
Drk3288-firefly.dts20 pmic_vsel: pmic-vsel {
Drk3288-firefly-beta.dts20 pmic_vsel: pmic-vsel {
/Linux-v4.19/include/linux/regulator/
Dlp872x.h65 enum lp872x_dvs_sel vsel; member
/Linux-v4.19/include/linux/mfd/wm831x/
Dpdata.h38 int vsel; /** Target voltage, in mV */ member
/Linux-v4.19/Documentation/devicetree/bindings/mfd/
Dact8945a.txt16 active-semi,vsel-high;

12