/external/u-boot/drivers/power/regulator/ |
D | lp873x_regulator.c | 58 static int lp873x_buck_volt2hex(int uV) in lp873x_buck_volt2hex() argument 60 if (uV > LP873X_BUCK_VOLT_MAX) in lp873x_buck_volt2hex() 62 else if (uV > 1400000) in lp873x_buck_volt2hex() 63 return (uV - 1420000) / 20000 + 0x9E; in lp873x_buck_volt2hex() 64 else if (uV > 730000) in lp873x_buck_volt2hex() 65 return (uV - 735000) / 5000 + 0x18; in lp873x_buck_volt2hex() 66 else if (uV >= 700000) in lp873x_buck_volt2hex() 67 return (uV - 700000) / 10000 + 0x1; in lp873x_buck_volt2hex() 86 static int lp873x_buck_val(struct udevice *dev, int op, int *uV) in lp873x_buck_val() argument 95 *uV = 0; in lp873x_buck_val() [all …]
|
D | palmas_regulator.c | 86 static int palmas_smps_volt2hex(int uV) in palmas_smps_volt2hex() argument 88 if (uV > PALMAS_LDO_VOLT_MAX) in palmas_smps_volt2hex() 91 if (uV > 1650000) in palmas_smps_volt2hex() 92 return (uV - 1000000) / 20000 + 0x6; in palmas_smps_volt2hex() 94 if (uV == 500000) in palmas_smps_volt2hex() 97 return 0x6 + ((uV - 500000) / 10000); in palmas_smps_volt2hex() 102 unsigned int uV = 0; in palmas_smps_hex2volt() local 108 uV = 500000; in palmas_smps_hex2volt() 110 uV = 500000 + (hex - 0x6) * 10000; in palmas_smps_hex2volt() 113 uV *= 2; in palmas_smps_hex2volt() [all …]
|
D | s2mps11_regulator.c | 46 unsigned int uV = 0; in s2mps11_buck_hex2volt() local 58 uV = hex * S2MPS11_BUCK_HSTEP + S2MPS11_BUCK_UV_HMIN; in s2mps11_buck_hex2volt() 63 uV = hex * S2MPS11_BUCK9_STEP * 2 + S2MPS11_BUCK9_UV_MIN; in s2mps11_buck_hex2volt() 71 uV = hex * S2MPS11_BUCK_LSTEP + S2MPS11_BUCK_UV_MIN; in s2mps11_buck_hex2volt() 75 return uV; in s2mps11_buck_hex2volt() 81 static int s2mps11_buck_volt2hex(int buck, int uV) in s2mps11_buck_volt2hex() argument 89 hex = (uV - S2MPS11_BUCK_UV_HMIN) / S2MPS11_BUCK_HSTEP; in s2mps11_buck_volt2hex() 95 hex = (uV - S2MPS11_BUCK9_UV_MIN) / S2MPS11_BUCK9_STEP; in s2mps11_buck_volt2hex() 100 hex = (uV - S2MPS11_BUCK_UV_MIN) / S2MPS11_BUCK_LSTEP; in s2mps11_buck_volt2hex() 112 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in s2mps11_buck_volt2hex() [all …]
|
D | lp87565_regulator.c | 56 static int lp87565_buck_volt2val(int uV) in lp87565_buck_volt2val() argument 58 if (uV > LP87565_BUCK_VOLT_MAX) in lp87565_buck_volt2val() 60 else if (uV > 1400000) in lp87565_buck_volt2val() 61 return (uV - 1420000) / 20000 + 0x9E; in lp87565_buck_volt2val() 62 else if (uV > 730000) in lp87565_buck_volt2val() 63 return (uV - 735000) / 5000 + 0x18; in lp87565_buck_volt2val() 64 else if (uV >= 500000) in lp87565_buck_volt2val() 65 return (uV - 500000) / 10000; in lp87565_buck_volt2val() 84 static int lp87565_buck_val(struct udevice *dev, int op, int *uV) in lp87565_buck_val() argument 93 *uV = 0; in lp87565_buck_val() [all …]
|
D | max77686.c | 69 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument 79 hex = (uV - MAX77686_BUCK_UV_LMIN) / MAX77686_BUCK_UV_LSTEP; in max77686_buck_volt2hex() 90 hex = (uV - MAX77686_BUCK_UV_HMIN) / MAX77686_BUCK_UV_HSTEP; in max77686_buck_volt2hex() 98 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in max77686_buck_volt2hex() 104 unsigned uV = 0; in max77686_buck_hex2volt() local 119 uV = hex * MAX77686_BUCK_UV_LSTEP + MAX77686_BUCK_UV_LMIN; in max77686_buck_hex2volt() 127 uV = hex * MAX77686_BUCK_UV_HSTEP + MAX77686_BUCK_UV_HMIN; in max77686_buck_hex2volt() 131 return uV; in max77686_buck_hex2volt() 138 static int max77686_ldo_volt2hex(int ldo, int uV) in max77686_ldo_volt2hex() argument 149 hex = (uV - MAX77686_LDO_UV_MIN) / MAX77686_LDO_UV_LSTEP; in max77686_ldo_volt2hex() [all …]
|
D | tps65910_regulator.c | 192 int uV) in tps65910_regulator_set_value() argument 200 if (uV == *(ldo->vout + sel)) in tps65910_regulator_set_value() 216 static int tps65910_ldo_set_value(struct udevice *dev, int uV) in tps65910_ldo_set_value() argument 228 return tps65910_regulator_set_value(dev, &ldo_props_vdig1, uV); in tps65910_ldo_set_value() 230 return tps65910_regulator_set_value(dev, &ldo_props_vdig2, uV); in tps65910_ldo_set_value() 232 return tps65910_regulator_set_value(dev, &ldo_props_vpll, uV); in tps65910_ldo_set_value() 234 return tps65910_regulator_set_value(dev, &ldo_props_vdac, uV); in tps65910_ldo_set_value() 236 return tps65910_regulator_set_value(dev, &ldo_props_vaux1, uV); in tps65910_ldo_set_value() 238 return tps65910_regulator_set_value(dev, &ldo_props_vaux2, uV); in tps65910_ldo_set_value() 240 return tps65910_regulator_set_value(dev, &ldo_props_vaux33, uV); in tps65910_ldo_set_value() [all …]
|
D | pfuze100.c | 447 static int pfuze100_regulator_val(struct udevice *dev, int op, int *uV) in pfuze100_regulator_val() argument 457 *uV = 0; in pfuze100_regulator_val() 459 *uV = desc->voltage; in pfuze100_regulator_val() 465 *uV = desc->volt_table[val]; in pfuze100_regulator_val() 475 *uV = uc_pdata->min_uV + (int)val * desc->uV_step; in pfuze100_regulator_val() 486 if (*uV == desc->volt_table[i]) in pfuze100_regulator_val() 490 debug("Unsupported voltage %u\n", *uV); in pfuze100_regulator_val() 503 (*uV - uc_pdata->min_uV) / desc->uV_step); in pfuze100_regulator_val() 511 int uV; in pfuze100_regulator_get_value() local 514 ret = pfuze100_regulator_val(dev, PMIC_OP_GET, &uV); in pfuze100_regulator_get_value() [all …]
|
D | regulator-uclass.c | 38 int regulator_set_value(struct udevice *dev, int uV) in regulator_set_value() argument 44 if (uc_pdata->min_uV != -ENODATA && uV < uc_pdata->min_uV) in regulator_set_value() 46 if (uc_pdata->max_uV != -ENODATA && uV > uc_pdata->max_uV) in regulator_set_value() 52 return ops->set_value(dev, uV); in regulator_set_value() 59 int regulator_set_value_force(struct udevice *dev, int uV) in regulator_set_value_force() argument 66 return ops->set_value(dev, uV); in regulator_set_value_force()
|
D | gpio-regulator.c | 93 static int gpio_regulator_set_value(struct udevice *dev, int uV) in gpio_regulator_set_value() argument 102 if (uV == dev_pdata->voltages[0]) in gpio_regulator_set_value() 104 else if (uV == dev_pdata->voltages[1]) in gpio_regulator_set_value()
|
D | sandbox.c | 208 static int buck_set_voltage(struct udevice *dev, int uV) in buck_set_voltage() argument 211 buck_voltage_range, uV); in buck_set_voltage() 284 static int ldo_set_voltage(struct udevice *dev, int uV) in ldo_set_voltage() argument 287 ldo_voltage_range, uV); in ldo_set_voltage()
|
D | pbias_regulator.c | 219 static int pbias_regulator_set_value(struct udevice *dev, int uV) in pbias_regulator_set_value() argument 229 if (uV == 3000000) in pbias_regulator_set_value() 231 else if (uV == 1800000) in pbias_regulator_set_value()
|
D | stm32-vrefbuf.c | 74 static int stm32_vrefbuf_set_value(struct udevice *dev, int uV) in stm32_vrefbuf_set_value() argument 80 if (uV == stm32_vrefbuf_voltages[i]) { in stm32_vrefbuf_set_value()
|
/external/u-boot/test/dm/ |
D | adc.c | 48 int uV; in dm_test_adc_supply() local 53 ut_assertok(adc_vss_value(dev, &uV)); in dm_test_adc_supply() 54 ut_asserteq(SANDBOX_ADC_VSS_VALUE, uV); in dm_test_adc_supply() 57 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply() 58 ut_asserteq(SANDBOX_BUCK2_INITIAL_EXPECTED_UV, uV); in dm_test_adc_supply() 66 ut_assertok(adc_vdd_value(dev, &uV)); in dm_test_adc_supply() 67 ut_asserteq(SANDBOX_BUCK2_SET_UV, uV); in dm_test_adc_supply()
|
/external/u-boot/drivers/power/pmic/ |
D | pmic_max8997.c | 13 unsigned char max8997_reg_ldo(int uV) in max8997_reg_ldo() argument 16 if (uV <= 800000) in max8997_reg_ldo() 18 if (uV >= 3950000) in max8997_reg_ldo() 20 ret = (uV - 800000) / 50000; in max8997_reg_ldo() 22 printf("MAX8997 LDO SETTING ERROR (%duV) -> %u\n", uV, ret); in max8997_reg_ldo()
|
/external/u-boot/include/power/ |
D | regulator.h | 192 int (*set_value)(struct udevice *dev, int uV); 260 int regulator_set_value(struct udevice *dev, int uV); 270 int regulator_set_value_force(struct udevice *dev, int uV);
|
D | max77686_pmic.h | 158 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);
|
/external/u-boot/include/ |
D | adc.h | 265 int adc_vdd_value(struct udevice *dev, int *uV); 277 int adc_vss_value(struct udevice *dev, int *uV);
|
/external/u-boot/drivers/adc/ |
D | adc-uclass.c | 300 int adc_vdd_value(struct udevice *dev, int *uV) in adc_vdd_value() argument 316 *uV = uc_pdata->vdd_microvolts * value_sign; in adc_vdd_value() 321 int adc_vss_value(struct udevice *dev, int *uV) in adc_vss_value() argument 337 *uV = uc_pdata->vss_microvolts * value_sign; in adc_vss_value()
|
/external/u-boot/arch/arm/mach-stm32mp/ |
D | pwr_regulator.c | 171 static int stm32mp_pwr_regulator_set_value(struct udevice *dev, int uV) in stm32mp_pwr_regulator_set_value() argument 179 if (uc_pdata->min_uV != uV) { in stm32mp_pwr_regulator_set_value() 180 dev_dbg(dev, "Invalid uV=%d for: %s\n", uV, uc_pdata->name); in stm32mp_pwr_regulator_set_value()
|
/external/u-boot/doc/device-tree-bindings/adc/ |
D | adc.txt | 20 - vdd-microvolts: positive reference Voltage value [uV] 21 - vss-microvolts: negative reference Voltage value [uV]
|
/external/u-boot/arch/arm/dts/ |
D | imx6dl.dtsi | 30 /* kHz uV */ 36 /* ARM kHz SOC-PU uV */
|
D | omap36xx.dtsi | 24 /* kHz uV */ 57 /*uV ABB efuse rbb_m fbb_m vset_m*/
|
D | imx6q.dtsi | 31 /* kHz uV */ 39 /* ARM kHz SOC-PU uV */
|
/external/skqp/samplecode/ |
D | SamplePatch.cpp | 92 SkScalar uV = u * (1 - v); in eval_sheet() local 95 SkScalar x0 = UV * edge[TL].fX + uV * edge[TR].fX + Uv * edge[BL].fX + uv * edge[BR].fX; in eval_sheet() 96 SkScalar y0 = UV * edge[TL].fY + uV * edge[TR].fY + Uv * edge[BL].fY + uv * edge[BR].fY; in eval_sheet()
|
/external/skia/samplecode/ |
D | SamplePatch.cpp | 92 SkScalar uV = u * (1 - v); in eval_sheet() local 95 SkScalar x0 = UV * edge[TL].fX + uV * edge[TR].fX + Uv * edge[BL].fX + uv * edge[BR].fX; in eval_sheet() 96 SkScalar y0 = UV * edge[TL].fY + uV * edge[TR].fY + Uv * edge[BL].fY + uv * edge[BR].fY; in eval_sheet()
|