Home
last modified time | relevance | path

Searched refs:uV (Results 1 – 25 of 71) sorted by relevance

123

/u-boot/drivers/power/regulator/
A Dlp873x_regulator.c62 else if (uV > 1400000) in lp873x_buck_volt2hex()
64 else if (uV > 730000) in lp873x_buck_volt2hex()
95 *uV = 0; in lp873x_buck_val()
108 *uV = ret; in lp873x_buck_val()
188 *uV = 0; in lp873x_ldo_val()
203 *uV = ret; in lp873x_ldo_val()
213 if (*uV > 1650000) in lp873x_ldo_val()
241 int uV; in ldo_get_value() local
248 return uV; in ldo_get_value()
295 int uV; in buck_get_value() local
[all …]
A Dtps65941_regulator.c129 *uV = 0; in tps65941_buck_val()
143 *uV = ret; in tps65941_buck_val()
151 if (*uV > ret) in tps65941_buck_val()
152 delta = *uV - ret; in tps65941_buck_val()
154 delta = ret - *uV; in tps65941_buck_val()
235 *uV = 0; in tps65941_ldo_val()
249 *uV = ret; in tps65941_ldo_val()
317 int uV; in ldo_get_value() local
324 return uV; in ldo_get_value()
351 int uV; in buck_get_value() local
[all …]
A Dlp87565_regulator.c59 if (uV > LP87565_BUCK_VOLT_MAX) in lp87565_buck_volt2val()
61 else if (uV > 1400000) in lp87565_buck_volt2val()
63 else if (uV > 730000) in lp87565_buck_volt2val()
64 return (uV - 735000) / 5000 + 0x18; in lp87565_buck_volt2val()
65 else if (uV >= 500000) in lp87565_buck_volt2val()
66 return (uV - 500000) / 10000; in lp87565_buck_volt2val()
94 *uV = 0; in lp87565_buck_val()
107 *uV = ret; in lp87565_buck_val()
112 hex = lp87565_buck_volt2val(*uV); in lp87565_buck_val()
152 int uV; in buck_get_value() local
[all …]
A Dpalmas_regulator.c108 uV = 500000; in palmas_smps_hex2volt()
113 uV *= 2; in palmas_smps_hex2volt()
115 return uV; in palmas_smps_hex2volt()
128 *uV = 0; in palmas_smps_val()
146 *uV = ret; in palmas_smps_val()
262 *uV = 0; in palmas_ldo_val()
277 *uV = ret; in palmas_ldo_val()
325 int uV; in ldo_get_value() local
332 return uV; in ldo_get_value()
432 int uV; in smps_get_value() local
[all …]
A Ds2mps11_regulator.c47 unsigned int uV = 0; in s2mps11_buck_hex2volt() local
76 return uV; in s2mps11_buck_hex2volt()
130 *uV = 0; in s2mps11_buck_val()
152 *uV = ret; in s2mps11_buck_val()
259 int uV; in buck_get_value() local
265 return uV; in buck_get_value()
359 return uV; in s2mps11_ldo_hex2volt()
409 *uV = 0; in s2mps11_ldo_val()
415 *uV = ret; in s2mps11_ldo_val()
527 int uV; in ldo_get_value() local
[all …]
A Dmax77686.c104 unsigned uV = 0; in max77686_buck_hex2volt() local
131 return uV; in max77686_buck_hex2volt()
186 return uV; in max77686_ldo_hex2volt()
324 *uV = 0; in max77686_ldo_val()
343 *uV = ret; in max77686_ldo_val()
371 *uV = 0; in max77686_buck_val()
397 *uV = ret; in max77686_buck_val()
673 int uV; in ldo_get_value() local
680 return uV; in ldo_get_value()
737 int uV; in buck_get_value() local
[all …]
A Dtps62360_regulator.c44 static int tps62360_regulator_set_value(struct udevice *dev, int uV) in tps62360_regulator_set_value() argument
49 if (uV < pdata->config->vmin || uV > pdata->config->vmax) in tps62360_regulator_set_value()
52 uV -= pdata->config->vmin; in tps62360_regulator_set_value()
54 uV = DIV_ROUND_UP(uV, TPS62360_VSEL_STEPSIZE); in tps62360_regulator_set_value()
56 if (uV > U8_MAX) in tps62360_regulator_set_value()
59 regval = (u8)uV; in tps62360_regulator_set_value()
A Dtps65910_regulator.c193 int uV) in tps65910_regulator_set_value() argument
201 if (uV == *(ldo->vout + sel)) in tps65910_regulator_set_value()
217 static int tps65910_ldo_set_value(struct udevice *dev, int uV) in tps65910_ldo_set_value() argument
233 return tps65910_regulator_set_value(dev, &ldo_props_vpll, uV); in tps65910_ldo_set_value()
342 if (uV < uc_pdata->min_uV) { in buck_set_vdd1_vdd2_value()
343 pr_err("voltage %duV for %s too low\n", uV, dev->name); in buck_set_vdd1_vdd2_value()
346 if (uV > uc_pdata->max_uV) { in buck_set_vdd1_vdd2_value()
347 pr_err("voltage %duV for %s too high\n", uV, dev->name); in buck_set_vdd1_vdd2_value()
356 val = ((uV / gain) - 562500) / 12500; in buck_set_vdd1_vdd2_value()
370 static int tps65910_buck_set_value(struct udevice *dev, int uV) in tps65910_buck_set_value() argument
[all …]
A Dregulator-uclass.c51 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument
55 int ret, old_uV = uV, is_enabled = 0; in regulator_set_value()
58 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_value()
60 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_value()
71 ret = ops->set_value(dev, uV); in regulator_set_value()
75 regulator_set_value_ramp_delay(dev, old_uV, uV, in regulator_set_value()
96 return ops->set_suspend_value(dev, uV); in regulator_set_suspend_value()
120 return ops->set_value(dev, uV); in regulator_set_value_force()
179 int uV = regulator_get_value(dev); in regulator_set_enable() local
181 if (uV > 0) { in regulator_set_enable()
[all …]
A Dpfuze100.c458 *uV = 0; in pfuze100_regulator_val()
460 *uV = desc->voltage; in pfuze100_regulator_val()
466 *uV = desc->volt_table[val]; in pfuze100_regulator_val()
476 *uV = uc_pdata->min_uV + (int)val * desc->uV_step; in pfuze100_regulator_val()
487 if (*uV == desc->volt_table[i]) in pfuze100_regulator_val()
491 debug("Unsupported voltage %u\n", *uV); in pfuze100_regulator_val()
504 (*uV - uc_pdata->min_uV) / desc->uV_step); in pfuze100_regulator_val()
512 int uV; in pfuze100_regulator_get_value() local
515 ret = pfuze100_regulator_val(dev, PMIC_OP_GET, &uV); in pfuze100_regulator_get_value()
519 return uV; in pfuze100_regulator_get_value()
[all …]
A Dgpio-regulator.c102 static int gpio_regulator_set_value(struct udevice *dev, int uV) in gpio_regulator_set_value() argument
111 if (uV == dev_pdata->voltages[0]) in gpio_regulator_set_value()
113 else if (uV == dev_pdata->voltages[1]) in gpio_regulator_set_value()
A Dfan53555.c154 static int fan53555_regulator_set_value(struct udevice *dev, int uV) in fan53555_regulator_set_value() argument
160 vol = (uV - priv->vsel_min) / priv->vsel_step; in fan53555_regulator_set_value()
162 __func__, uV, pdata->vol_reg, vol); in fan53555_regulator_set_value()
/u-boot/test/dm/
A Dadc.c53 int uV; in dm_test_adc_supply() local
58 ut_assertok(adc_vss_value(dev, &uV)); in dm_test_adc_supply()
59 ut_asserteq(SANDBOX_ADC_VSS_VALUE, uV); in dm_test_adc_supply()
62 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply()
63 ut_asserteq(SANDBOX_BUCK2_INITIAL_EXPECTED_UV, uV); in dm_test_adc_supply()
71 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply()
72 ut_asserteq(SANDBOX_BUCK2_SET_UV, uV); in dm_test_adc_supply()
185 int uV; in dm_test_adc_raw_to_uV() local
192 ut_assertok(adc_raw_to_uV(dev, data, &uV)); in dm_test_adc_raw_to_uV()
193 ut_asserteq(dm_test_adc_uV_data[i], uV); in dm_test_adc_raw_to_uV()
A Dbutton.c93 int uV; in dm_test_button_keys_adc() local
101 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_button_keys_adc()
102 ut_asserteq(SANDBOX_BUCK2_SET_UV, uV); in dm_test_button_keys_adc()
/u-boot/include/power/
A Dregulator.h199 int (*set_value)(struct udevice *dev, int uV);
211 int (*set_suspend_value)(struct udevice *dev, int uV);
294 int regulator_set_value(struct udevice *dev, int uV);
303 int regulator_set_suspend_value(struct udevice *dev, int uV);
321 int regulator_set_value_force(struct udevice *dev, int uV);
541 static inline int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument
546 static inline int regulator_set_suspend_value(struct udevice *dev, int uV) in regulator_set_suspend_value() argument
556 static inline int regulator_set_value_force(struct udevice *dev, int uV) in regulator_set_value_force() argument
A Dmax77686_pmic.h158 int max77686_set_ldo_voltage(struct pmic *p, int ldo, ulong uV);
160 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV);
/u-boot/cmd/
A Dadc.c76 int ret, uV; in do_adc_single() local
90 if (!ret && !adc_raw_to_uV(dev, data, &uV)) in do_adc_single()
91 printf("%u, %d uV\n", data, uV); in do_adc_single()
104 int i, chan, ret, uV; in do_adc_scan() local
139 if (!adc_raw_to_uV(dev, ch[i].data, &uV)) in do_adc_scan()
140 printf("[%02d]: %u, %d uV\n", ch[i].id, ch[i].data, uV); in do_adc_scan()
/u-boot/include/
A Dadc.h276 int adc_vdd_value(struct udevice *dev, int *uV);
288 int adc_vss_value(struct udevice *dev, int *uV);
306 int adc_raw_to_uV(struct udevice *dev, unsigned int raw, int *uV);
/u-boot/drivers/button/
A Dbutton-adc.c36 int ret, uV; in button_adc_get_state() local
46 ret = adc_raw_to_uV(priv->adc, val, &uV); in button_adc_get_state()
50 return (uV >= priv->min && uV < priv->max) ? BUTTON_ON : BUTTON_OFF; in button_adc_get_state()
/u-boot/drivers/adc/
A Dadc-uclass.c310 int adc_vdd_value(struct udevice *dev, int *uV) in adc_vdd_value() argument
323 *uV = uc_pdata->vdd_microvolts * value_sign; in adc_vdd_value()
328 int adc_vss_value(struct udevice *dev, int *uV) in adc_vss_value() argument
341 *uV = uc_pdata->vss_microvolts * value_sign; in adc_vss_value()
346 int adc_raw_to_uV(struct udevice *dev, unsigned int raw, int *uV) in adc_raw_to_uV() argument
365 *uV = raw64; in adc_raw_to_uV()
/u-boot/arch/arm/dts/
A Dimx6q.dtsi26 /* kHz uV */
34 /* ARM kHz SOC-PU uV */
61 /* kHz uV */
69 /* ARM kHz SOC-PU uV */
95 /* kHz uV */
103 /* ARM kHz SOC-PU uV */
129 /* kHz uV */
137 /* ARM kHz SOC-PU uV */
A Domap443x.dtsi18 /* kHz uV */
53 /*uV ABB efuse rbb_m fbb_m vset_m*/
A Dimx6ull.dtsi16 /* kHz uV */
24 /* KHz uV */
A Domap4460.dtsi17 /* kHz uV */
61 /*uV ABB efuse rbb_m fbb_m vset_m*/
79 /*uV ABB efuse rbb_m fbb_m vset_m*/
/u-boot/board/st/stm32mp1/
A Dstm32mp1.c298 int ret, uV; in adc_measurement() local
325 if (!adc_raw_to_uV(adc, raw, &uV)) { in adc_measurement()
326 if (uV > *max_uV) in adc_measurement()
327 *max_uV = uV; in adc_measurement()
328 if (uV < *min_uV) in adc_measurement()
329 *min_uV = uV; in adc_measurement()
331 adc->name, adc_args.args[0], raw, uV); in adc_measurement()

Completed in 38 milliseconds

123