Home
last modified time | relevance | path

Searched refs:uvolt (Results 1 – 22 of 22) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/power/regulator/
H A Drk806.c159 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 Drk8xx.c223 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 Dfan53555_regulator.c248 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 Drk860x_regulator.c225 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 Dact8846.c75 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 Dpwm_regulator.c68 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 Das3722_regulator.c22 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 Dmax77693_charger.c439 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 Dmax14577_charger.c231 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 Dtwl4030_charger.c545 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 Dmax14577.txt32 - 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 Dvc.c794 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 Dtwl-charger.txt20 - ti,bb-uvolt: microvolts for charging the backup battery.
28 ti,bb-uvolt = <3200000>;
/OK3568_Linux_fs/u-boot/include/power/
H A Drk8xx_pmic.h294 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 Dlogicpd-som-lv-baseboard.dtsi59 ti,bb-uvolt = <3200000>;
H A Dexynos3250-monk.dts105 maxim,constant-uvolt = <4350000>;
108 maxim,ovp-uvolt = <6500000>;
H A Dexynos3250-rinato.dts105 maxim,constant-uvolt = <4350000>;
108 maxim,ovp-uvolt = <6500000>;
H A Dlogicpd-torpedo-baseboard.dtsi90 ti,bb-uvolt = <3200000>;
H A Domap3-pandora-common.dtsi448 ti,bb-uvolt = <3200000>;
H A Domap3-gta04.dtsi697 ti,bb-uvolt = <3200000>;
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Dlogicpd-som-lv-37xx-devkit.dts74 ti,bb-uvolt = <3200000>;
H A Dlogicpd-torpedo-37xx-devkit.dts104 ti,bb-uvolt = <3200000>;