| /OK3568_Linux_fs/u-boot/drivers/power/regulator/ |
| H A D | rk806.c | 159 int num, int uvolt) in get_buck_reg() argument 167 if (uvolt < 1500000) in get_buck_reg() 169 else if (uvolt < 3400000) in get_buck_reg() 180 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument 182 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value() 192 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_value() 195 __func__, uvolt, buck + 1, info->vsel_reg, mask, val); in _buck_set_value() 224 static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_suspend_value() argument 226 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_suspend_value() 236 val = ((uvolt - info->min_uv) / info->step_uv) + info->min_sel; in _buck_set_suspend_value() [all …]
|
| H A D | rk8xx.c | 223 int num, int uvolt) in get_buck_reg() argument 233 if (uvolt <= 1450000) in get_buck_reg() 235 else if (uvolt <= 2200000) in get_buck_reg() 247 if (uvolt < 1500000) in get_buck_reg() 249 else if (uvolt < 2400000) in get_buck_reg() 254 if (uvolt < 1500000) in get_buck_reg() 256 else if (uvolt < 3400000) in get_buck_reg() 262 if (uvolt < 1800000) in get_buck_reg() 264 else if (uvolt < 2800000) in get_buck_reg() 266 else if (uvolt < 3300000) in get_buck_reg() [all …]
|
| H A D | fan53555_regulator.c | 248 int uvolt = 0, val; in fan53555_regulator_get_voltage() local 252 uvolt = (val * priv->vsel_step) + priv->vsel_min; in fan53555_regulator_get_voltage() 254 return uvolt; in fan53555_regulator_get_voltage() 257 static int fan53555_regulator_set_voltage(struct udevice *dev, int uvolt) in fan53555_regulator_set_voltage() argument 262 val = ((uvolt - priv->vsel_min) / priv->vsel_step); in fan53555_regulator_set_voltage() 271 int uvolt = 0, val; in fan53555_regulator_get_suspend_voltage() local 275 uvolt = (val * priv->vsel_step) + priv->vsel_min; in fan53555_regulator_get_suspend_voltage() 277 return uvolt; in fan53555_regulator_get_suspend_voltage() 281 int uvolt) in fan53555_regulator_set_suspend_voltage() argument 286 val = ((uvolt - priv->vsel_min) / priv->vsel_step); in fan53555_regulator_set_suspend_voltage()
|
| H A D | rk860x_regulator.c | 225 int uvolt = 0, ret; in rk860x_regulator_get_voltage() local 233 uvolt = (val * priv->vsel_step) + priv->vsel_min; in rk860x_regulator_get_voltage() 235 return uvolt; in rk860x_regulator_get_voltage() 238 static int rk860x_regulator_set_voltage(struct udevice *dev, int uvolt) in rk860x_regulator_set_voltage() argument 243 val = ((uvolt - priv->vsel_min) / priv->vsel_step); in rk860x_regulator_set_voltage() 252 int uvolt = 0, ret; in rk860x_regulator_get_suspend_voltage() local 260 uvolt = (val * priv->vsel_step) + priv->vsel_min; in rk860x_regulator_get_suspend_voltage() 262 return uvolt; in rk860x_regulator_get_suspend_voltage() 266 int uvolt) in rk860x_regulator_set_suspend_voltage() argument 271 val = ((uvolt - priv->vsel_min) / priv->vsel_step); in rk860x_regulator_set_suspend_voltage()
|
| H A D | act8846.c | 75 static int check_volt_table(const u16 *volt_table, int uvolt) in check_volt_table() argument 80 if (uvolt <= (volt_table[i] * 1000)) in check_volt_table() 98 static int reg_set_value(struct udevice *dev, int uvolt) in reg_set_value() argument 103 val = check_volt_table(voltage_map, uvolt); in reg_set_value()
|
| H A D | pwm_regulator.c | 68 static int pwm_regulator_set_voltage(struct udevice *dev, int uvolt) in pwm_regulator_set_voltage() argument 74 duty_cycle = pwm_voltage_to_duty_cycle_percentage(dev, uvolt); in pwm_regulator_set_voltage() 89 priv->volt_uV = uvolt; in pwm_regulator_set_voltage()
|
| H A D | as3722_regulator.c | 22 static int stepdown_set_value(struct udevice *dev, int uvolt) in stepdown_set_value() argument 64 static int ldo_set_value(struct udevice *dev, int uvolt) in ldo_set_value() argument
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | max77693_charger.c | 439 unsigned int uvolt) in max77693_set_constant_volt() argument 453 if (uvolt >= 3650000 && uvolt < 4340000) in max77693_set_constant_volt() 454 data = (uvolt - 3650000) / 25000; in max77693_set_constant_volt() 455 else if (uvolt >= 4340000 && uvolt < 4350000) in max77693_set_constant_volt() 457 else if (uvolt >= 4350000 && uvolt <= 4400000) in max77693_set_constant_volt() 458 data = 0x1d + (uvolt - 4350000) / 25000; in max77693_set_constant_volt() 466 dev_dbg(chg->dev, "Charging constant voltage: %u (0x%x)\n", uvolt, in max77693_set_constant_volt() 475 unsigned int uvolt) in max77693_set_min_system_volt() argument 479 if (uvolt < 3000000 || uvolt > 3700000) { in max77693_set_min_system_volt() 484 data = (uvolt - 3000000) / 100000; in max77693_set_min_system_volt() [all …]
|
| H A D | max14577_charger.c | 231 unsigned int uvolt) in max14577_init_constant_voltage() argument 235 if (uvolt < MAXIM_CHARGER_CONSTANT_VOLTAGE_MIN || in max14577_init_constant_voltage() 236 uvolt > MAXIM_CHARGER_CONSTANT_VOLTAGE_MAX) in max14577_init_constant_voltage() 239 if (uvolt == 4200000) in max14577_init_constant_voltage() 241 else if (uvolt == MAXIM_CHARGER_CONSTANT_VOLTAGE_MAX) in max14577_init_constant_voltage() 243 else if (uvolt <= 4280000) { in max14577_init_constant_voltage() 244 unsigned int val = uvolt; in max14577_init_constant_voltage() 248 if (uvolt <= 4180000) in max14577_init_constant_voltage()
|
| H A D | twl4030_charger.c | 545 static int twl4030_charger_enable_backup(int uvolt, int uamp) in twl4030_charger_enable_backup() argument 550 if (uvolt < 2500000 || in twl4030_charger_enable_backup() 559 if (uvolt >= 3200000) in twl4030_charger_enable_backup() 561 else if (uvolt >= 3100000) in twl4030_charger_enable_backup() 563 else if (uvolt >= 3000000) in twl4030_charger_enable_backup()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | max14577.txt | 32 - maxim,ovp-uvolt : OverVoltage Protection Threshold in uV; 36 - maxim,constant-uvolt : Battery Constant Voltage in uV; 97 maxim,constant-uvolt = <4350000>; 100 maxim,ovp-uvolt = <6500000>; 142 maxim,constant-uvolt = <4350000>; 145 maxim,ovp-uvolt = <6500000>;
|
| /OK3568_Linux_fs/kernel/arch/arm/mach-omap2/ |
| H A D | vc.c | 794 static u8 omap_vc_calc_vsel(struct voltagedomain *voltdm, u32 uvolt) in omap_vc_calc_vsel() argument 796 if (voltdm->pmic->vddmin > uvolt) in omap_vc_calc_vsel() 797 uvolt = voltdm->pmic->vddmin; in omap_vc_calc_vsel() 798 if (voltdm->pmic->vddmax < uvolt) { in omap_vc_calc_vsel() 800 __func__, uvolt, voltdm->pmic->vddmax); in omap_vc_calc_vsel() 802 uvolt = voltdm->pmic->vddmax; in omap_vc_calc_vsel() 805 return voltdm->pmic->uv_to_vsel(uvolt); in omap_vc_calc_vsel()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/power/supply/ |
| H A D | twl-charger.txt | 20 - ti,bb-uvolt: microvolts for charging the backup battery. 28 ti,bb-uvolt = <3200000>;
|
| /OK3568_Linux_fs/u-boot/include/power/ |
| H A D | rk8xx_pmic.h | 294 int rk8xx_spl_configure_buck(struct udevice *pmic, int buck, int uvolt); 296 int rk818_spl_configure_usb_chrg_shutdown(struct udevice *pmic, int uvolt);
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| H A D | logicpd-som-lv-baseboard.dtsi | 59 ti,bb-uvolt = <3200000>;
|
| H A D | exynos3250-monk.dts | 105 maxim,constant-uvolt = <4350000>; 108 maxim,ovp-uvolt = <6500000>;
|
| H A D | exynos3250-rinato.dts | 105 maxim,constant-uvolt = <4350000>; 108 maxim,ovp-uvolt = <6500000>;
|
| H A D | logicpd-torpedo-baseboard.dtsi | 90 ti,bb-uvolt = <3200000>;
|
| H A D | omap3-pandora-common.dtsi | 448 ti,bb-uvolt = <3200000>;
|
| H A D | omap3-gta04.dtsi | 697 ti,bb-uvolt = <3200000>;
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | logicpd-som-lv-37xx-devkit.dts | 74 ti,bb-uvolt = <3200000>;
|
| H A D | logicpd-torpedo-37xx-devkit.dts | 104 ti,bb-uvolt = <3200000>;
|