mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
optimize IR comp for 2nd chg ic
Details: optimize IR comp for 2nd chg ic Change-Id: I1d1fde7b7e10ac3ba5a8bab67cd827a8b36c961b Reviewed-on: https://gerrit.mot.com/2433431 Reviewed-by: <hq114@motorola.com> SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen <chenl18@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
fc6ed50514
commit
077c1d050a
1 changed files with 7 additions and 1 deletions
|
|
@ -2558,7 +2558,7 @@ static void bq2589x_adjust_constant_voltage(struct bq2589x *bq, int vbat)
|
|||
int cv_adjust;
|
||||
u8 status = 0;
|
||||
|
||||
dev_err(bq->dev, "bq2589x_adjust_constant_voltage 111\n");
|
||||
dev_err(bq->dev, "bq2589x_adjust_constant_voltage\n");
|
||||
|
||||
if (bq->final_cv > vbat && (bq->final_cv - vbat) < 16000)
|
||||
return;
|
||||
|
|
@ -2730,6 +2730,12 @@ static void bq2589x_charger_irq_workfunc(struct work_struct *work)
|
|||
ret = bq2589x_set_input_volt_limit(bq, bq->cfg.vindpm);
|
||||
bq->vindpm_flag = false;
|
||||
}
|
||||
/* enable dynamic adjust battery voltage */
|
||||
if(bq->enable_dynamic_adjust_batvol){
|
||||
bq->cv_tune = 0;
|
||||
bq->final_cv /= 1000;
|
||||
bq2589x_set_chargevoltage(bq, bq->final_cv);
|
||||
}
|
||||
} else if ((bq->vbus_type != BQ2589X_VBUS_NONE) && (bq->vbus_type != BQ2589X_VBUS_OTG)
|
||||
&& (!(bq->status & BQ2589X_STATUS_PLUGIN) || (reapsd_complete == true))
|
||||
&& state.online) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue