Home
last modified time | relevance | path

Searched refs:vbatreg (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dbq256xx_charger.c167 u32 vbatreg; member
638 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
640 if (vbatreg > BQ25618_VBATREG_THRESH_uV) in bq25618_619_set_chrg_volt()
641 vbatreg_reg_code = ((vbatreg - in bq25618_619_set_chrg_volt()
660 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
662 if (vbatreg > BQ25611D_VBATREG_THRESH_uV) in bq25611d_set_chrg_volt()
663 vbatreg_reg_code = ((vbatreg - in bq25611d_set_chrg_volt()
681 vbatreg = clamp(vbatreg, BQ2560X_VBATREG_MIN_uV, vbatreg_max); in bq2560x_set_chrg_volt()
683 vbatreg_reg_code = (vbatreg - BQ2560X_VBATREG_OFFSET_uV) / in bq2560x_set_chrg_volt()
696 vbatreg = clamp(vbatreg, BQ25601D_VBATREG_MIN_uV, vbatreg_max); in bq25601d_set_chrg_volt()
[all …]
H A Dbq2515x_charger.c146 int vbatreg; member
856 ret = bq2515x->init_data.vbatreg; in bq2515x_battery_get_property()
966 bq2515x->init_data.vbatreg = BQ2515X_DEFAULT_VBAT_REG_UV; in bq2515x_hw_init()
974 bq2515x->init_data.vbatreg = in bq2515x_hw_init()
986 ret = bq2515x_set_batt_reg(bq2515x, bq2515x->init_data.vbatreg); in bq2515x_hw_init()