Home
last modified time | relevance | path

Searched refs:min_uV (Results 1 – 25 of 47) sorted by relevance

12

/drivers/regulator/
Das3711-regulator.c72 int *min_uV, int *max_uV) in as3711_bound_check() argument
78 *min_uV, rdev->desc->min_uV, info->max_uV); in as3711_bound_check()
80 if (*max_uV < *min_uV || in as3711_bound_check()
81 *min_uV > info->max_uV || rdev->desc->min_uV > *max_uV) in as3711_bound_check()
90 if (*min_uV < rdev->desc->min_uV) in as3711_bound_check()
91 *min_uV = rdev->desc->min_uV; in as3711_bound_check()
93 return *min_uV; in as3711_bound_check()
112 int min_uV, int max_uV) in as3711_map_voltage_sd() argument
116 ret = as3711_bound_check(rdev, &min_uV, &max_uV); in as3711_map_voltage_sd()
120 if (min_uV <= 1400000) in as3711_map_voltage_sd()
[all …]
Dtwl-regulator.c496 twl4030smps_set_voltage(struct regulator_dev *rdev, int min_uV, int max_uV, in twl4030smps_set_voltage() argument
500 int vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl4030smps_set_voltage()
503 return info->set_voltage(info->data, min_uV); in twl4030smps_set_voltage()
531 static int twl6030coresmps_set_voltage(struct regulator_dev *rdev, int min_uV, in twl6030coresmps_set_voltage() argument
537 return info->set_voltage(info->data, min_uV); in twl6030coresmps_set_voltage()
727 static int twl6030smps_map_voltage(struct regulator_dev *rdev, int min_uV, in twl6030smps_map_voltage() argument
735 if (min_uV == 0) in twl6030smps_map_voltage()
737 else if ((min_uV >= 600000) && (min_uV <= 1300000)) { in twl6030smps_map_voltage()
738 vsel = DIV_ROUND_UP(min_uV - 600000, 12500); in twl6030smps_map_voltage()
744 else if ((min_uV > 1900000) && (min_uV <= 2100000)) in twl6030smps_map_voltage()
[all …]
Dda9052-regulator.c71 int min_uV; member
82 int min_uV, int max_uV) in verify_range() argument
84 if (min_uV > info->max_uV || max_uV < info->min_uV) in verify_range()
168 + info->min_uV); in da9052_list_voltage()
172 volt_uV = (selector * info->step_uV) + info->min_uV; in da9052_list_voltage()
182 int min_uV, int max_uV) in da9052_map_voltage() argument
189 ret = verify_range(info, min_uV, max_uV); in da9052_map_voltage()
193 if (min_uV < info->min_uV) in da9052_map_voltage()
194 min_uV = info->min_uV; in da9052_map_voltage()
197 && (min_uV >= DA9052_CONST_3uV)) { in da9052_map_voltage()
[all …]
Dcore.c96 int min_uV; member
112 int min_uV, int max_uV);
167 int *min_uV, int *max_uV) in regulator_check_voltage() argument
169 BUG_ON(*min_uV > *max_uV); in regulator_check_voltage()
182 if (*min_uV < rdev->constraints->min_uV) in regulator_check_voltage()
183 *min_uV = rdev->constraints->min_uV; in regulator_check_voltage()
185 if (*min_uV > *max_uV) { in regulator_check_voltage()
187 *min_uV, *max_uV); in regulator_check_voltage()
198 int *min_uV, int *max_uV) in regulator_check_consumers() argument
207 if (!regulator->min_uV && !regulator->max_uV) in regulator_check_consumers()
[all …]
Dda903x.c95 int min_uV, int max_uV) in check_range() argument
97 if (min_uV < info->desc.min_uV || min_uV > info->max_uV) in check_range()
194 int min_uV, int max_uV) in da9030_map_ldo14_voltage() argument
199 if (check_range(info, min_uV, max_uV)) { in da9030_map_ldo14_voltage()
200 pr_err("invalid voltage range (%d, %d) uV\n", min_uV, max_uV); in da9030_map_ldo14_voltage()
204 thresh = (info->max_uV + info->desc.min_uV) / 2; in da9030_map_ldo14_voltage()
205 if (min_uV < thresh) { in da9030_map_ldo14_voltage()
206 sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step); in da9030_map_ldo14_voltage()
209 sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step); in da9030_map_ldo14_voltage()
222 volt = rdev->desc->min_uV + in da9030_list_ldo14_voltage()
[all …]
Dof_regulator.c22 const __be32 *min_uV, *max_uV, *uV_offset; in of_get_regulation_constraints() local
28 min_uV = of_get_property(np, "regulator-min-microvolt", NULL); in of_get_regulation_constraints()
29 if (min_uV) in of_get_regulation_constraints()
30 constraints->min_uV = be32_to_cpu(*min_uV); in of_get_regulation_constraints()
36 if (constraints->min_uV != constraints->max_uV) in of_get_regulation_constraints()
39 if (min_uV && max_uV && constraints->min_uV == constraints->max_uV) in of_get_regulation_constraints()
Dwm8400-regulator.c35 int min_uV, int max_uV) in wm8400_ldo_map_voltage() argument
40 if (min_uV < 900000 || min_uV > 3300000) in wm8400_ldo_map_voltage()
43 if (min_uV < 1700000) /* Steps of 50mV from 900mV; */ in wm8400_ldo_map_voltage()
44 val = DIV_ROUND_UP(min_uV - 900000, 50000); in wm8400_ldo_map_voltage()
46 val = DIV_ROUND_UP(min_uV - 1700000, 100000) + 15; in wm8400_ldo_map_voltage()
49 if (volt < min_uV || volt > max_uV) in wm8400_ldo_map_voltage()
208 .min_uV = 850000,
222 .min_uV = 850000,
Darizona-micsupp.c56 int min_uV, int max_uV) in arizona_micsupp_map_voltage() argument
61 if (min_uV < 1700000) in arizona_micsupp_map_voltage()
62 min_uV = 1700000; in arizona_micsupp_map_voltage()
64 if (min_uV > 3200000) in arizona_micsupp_map_voltage()
67 selector = DIV_ROUND_UP(min_uV - 1700000, 50000); in arizona_micsupp_map_voltage()
73 if (voltage < min_uV || voltage > max_uV) in arizona_micsupp_map_voltage()
182 .min_uV = 1700000,
Darizona-ldo1.c46 return rdev->desc->min_uV + (rdev->desc->uV_step * selector); in arizona_ldo1_hc_list_voltage()
50 int min_uV, int max_uV) in arizona_ldo1_hc_map_voltage() argument
54 sel = DIV_ROUND_UP(min_uV - rdev->desc->min_uV, rdev->desc->uV_step); in arizona_ldo1_hc_map_voltage()
131 .min_uV = 900000,
158 .min_uV = 900000,
168 .min_uV = 1200000,
Dvirtual.c25 int min_uV; member
37 if (data->min_uV && data->max_uV in update_voltage_constraints()
38 && data->min_uV <= data->max_uV) { in update_voltage_constraints()
40 data->min_uV, data->max_uV); in update_voltage_constraints()
42 data->min_uV, data->max_uV); in update_voltage_constraints()
50 if (data->min_uV && data->max_uV && !data->enabled) { in update_voltage_constraints()
60 if (!(data->min_uV && data->max_uV) && data->enabled) { in update_voltage_constraints()
115 return sprintf(buf, "%d\n", data->min_uV); in show_min_uV()
129 data->min_uV = val; in set_min_uV()
Dtps65217-regulator.c48 .min_uV = _min, \
196 int min_uV, int max_uV) in tps65217_pmic_map_voltage() argument
210 if (min_uV < tps->info[rid]->min_uV) in tps65217_pmic_map_voltage()
211 min_uV = tps->info[rid]->min_uV; in tps65217_pmic_map_voltage()
213 if (max_uV < tps->info[rid]->min_uV || min_uV > tps->info[rid]->max_uV) in tps65217_pmic_map_voltage()
216 ret = tps->info[rid]->uv_to_vsel(min_uV, &sel); in tps65217_pmic_map_voltage()
Dwm831x-ldo.c82 int min_uV, int max_uV) in wm831x_gp_ldo_map_voltage() argument
86 if (min_uV < 900000) in wm831x_gp_ldo_map_voltage()
88 else if (min_uV < 1700000) in wm831x_gp_ldo_map_voltage()
89 vsel = ((min_uV - 900000) / 50000); in wm831x_gp_ldo_map_voltage()
91 vsel = ((min_uV - 1700000) / 100000) in wm831x_gp_ldo_map_voltage()
95 if (volt < min_uV || volt > max_uV) in wm831x_gp_ldo_map_voltage()
381 int min_uV, int max_uV) in wm831x_aldo_map_voltage() argument
385 if (min_uV < 1000000) in wm831x_aldo_map_voltage()
387 else if (min_uV < 1700000) in wm831x_aldo_map_voltage()
388 vsel = ((min_uV - 1000000) / 50000); in wm831x_aldo_map_voltage()
[all …]
Ds2mps11.c85 .min_uV = S2MPS11_LDO_MIN, \
99 .min_uV = S2MPS11_LDO_MIN, \
114 .min_uV = S2MPS11_BUCK_MIN1, \
129 .min_uV = S2MPS11_BUCK_MIN1, \
144 .min_uV = S2MPS11_BUCK_MIN1, \
159 .min_uV = S2MPS11_BUCK_MIN3, \
174 .min_uV = S2MPS11_BUCK_MIN2, \
Dmax1586.c44 unsigned int min_uV; member
182 max1586->min_uV = MAX1586_V3_MIN_UV / 1000 * pdata->v3_gain / 1000; in max1586_pmic_probe()
200 max1586_reg[id].min_uV = max1586->min_uV; in max1586_pmic_probe()
202 (max1586->max_uV - max1586->min_uV) / in max1586_pmic_probe()
Dpalmas-regulator.c384 int min_uV, int max_uV) in palmas_map_voltage_smps() argument
390 if (min_uV == 0) in palmas_map_voltage_smps()
394 if (min_uV < 1000000) in palmas_map_voltage_smps()
395 min_uV = 1000000; in palmas_map_voltage_smps()
396 ret = DIV_ROUND_UP(min_uV - 1000000, 20000) + 6; in palmas_map_voltage_smps()
398 if (min_uV < 500000) in palmas_map_voltage_smps()
399 min_uV = 500000; in palmas_map_voltage_smps()
400 ret = DIV_ROUND_UP(min_uV - 500000, 10000) + 6; in palmas_map_voltage_smps()
405 if (voltage < min_uV || voltage > max_uV) in palmas_map_voltage_smps()
883 pmic->desc[id].min_uV = 3750000; in palmas_regulators_probe()
[all …]
Dtps80031-regulator.c266 int min_uV, int max_uV) in tps80031_ldo_map_voltage() argument
277 return regulator_map_voltage_iterate(rdev, min_uV, in tps80031_ldo_map_voltage()
282 return regulator_map_voltage_linear(rdev, min_uV, max_uV); in tps80031_ldo_map_voltage()
457 .min_uV = 1000000, \
476 .min_uV = max_mV * 1000, \
642 ri->rinfo->desc.min_uV = 600000; in check_smps_mode_mult()
656 ri->rinfo->desc.min_uV = 607700; in check_smps_mode_mult()
660 ri->rinfo->desc.min_uV = 700000; in check_smps_mode_mult()
664 ri->rinfo->desc.min_uV = 1852000; in check_smps_mode_mult()
668 ri->rinfo->desc.min_uV = 2161000; in check_smps_mode_mult()
Dlp8788-ldo.c344 .min_uV = 2500000,
371 .min_uV = 2850000,
382 .min_uV = 2850000,
393 .min_uV = 2850000,
404 .min_uV = 2850000,
441 .min_uV = 2500000,
452 .min_uV = 2500000,
463 .min_uV = 1100000,
Dmax77686.c250 .min_uV = MAX77686_LDO_MINUV, \
266 .min_uV = MAX77686_LDO_MINUV, \
282 .min_uV = MAX77686_LDO_LOW_MINUV, \
298 .min_uV = MAX77686_LDO_LOW_MINUV, \
314 .min_uV = MAX77686_BUCK_MINUV, \
329 .min_uV = MAX77686_BUCK_MINUV, \
344 .min_uV = MAX77686_DVS_MINUV, \
Dvexpress.c42 int min_uV, int max_uV, unsigned *selector) in vexpress_regulator_set_voltage() argument
46 return vexpress_config_write(reg->func, 0, min_uV); in vexpress_regulator_set_voltage()
89 if (init_data->constraints.min_uV && init_data->constraints.max_uV) in vexpress_regulator_probe()
Disl6271a-regulator.c88 .min_uV = ISL6271A_VOLTAGE_MIN,
97 .min_uV = 1100000,
105 .min_uV = 1300000,
Dmax8660.c263 .min_uV = MAX8660_DCDC_MIN_UV,
273 .min_uV = MAX8660_DCDC_MIN_UV,
283 .min_uV = MAX8660_LDO5_MIN_UV,
293 .min_uV = MAX8660_LDO67_MIN_UV,
303 .min_uV = MAX8660_LDO67_MIN_UV,
Dmax8907-regulator.c59 .min_uV = (min), \
76 .min_uV = (voltage), \
88 .min_uV = (voltage), \
102 .min_uV = (min), \
307 pmic->desc[MAX8907_SD1].min_uV = 637500; in max8907_regulator_probe()
Dmc13xxx-regulator-core.c137 int mc13xxx_fixed_regulator_set_voltage(struct regulator_dev *rdev, int min_uV, in mc13xxx_fixed_regulator_set_voltage() argument
143 __func__, id, min_uV, max_uV); in mc13xxx_fixed_regulator_set_voltage()
145 if (min_uV <= rdev->desc->volt_table[0] && in mc13xxx_fixed_regulator_set_voltage()
Dmax8997.c413 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_charger_cv() argument
429 if (max_uV < 4000000 || min_uV > 4350000) in max8997_set_voltage_charger_cv()
432 if (min_uV <= 4000000) { in max8997_set_voltage_charger_cv()
437 } else if (min_uV <= 4200000 && max_uV >= 4200000) in max8997_set_voltage_charger_cv()
440 lb = (min_uV - 4000001) / 20000 + 2; in max8997_set_voltage_charger_cv()
468 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_ldobuck() argument
495 i = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_ldobuck()
635 int min_uV, int max_uV, unsigned *selector) in max8997_set_voltage_buck() argument
662 return max8997_set_voltage_ldobuck(rdev, min_uV, max_uV, in max8997_set_voltage_buck()
666 new_val = max8997_get_voltage_proper_val(desc, min_uV, max_uV); in max8997_set_voltage_buck()
/drivers/cpufreq/
Dcpufreq-cpu0.c242 unsigned long min_uV, max_uV; in cpu0_cpufreq_probe() local
255 min_uV = opp_get_voltage(opp); in cpu0_cpufreq_probe()
260 ret = regulator_set_voltage_time(cpu_reg, min_uV, max_uV); in cpu0_cpufreq_probe()

12