charger:optimize the qc3p init vbus voltage
To ensure the battery current can meet the target, optimize the qc3p init votalge while the soc above 65%. Change-Id: I005799a1a530bd1d5899206da4f64bf4492d4c84 Signed-off-by: Lei Chen <chenlei18@lenovo.com> Reviewed-on: https://gerrit.mot.com/2629112 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Xu <xuwei9@lenovo.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
1 parent
64f13d6843
commit
5994d0842b
2 files changed
+4
-4
No files matched your search
@@ -675,8 +675,8 @@ void mmi_chrg_sm_work_func(struct work_struct *work)
|
||||
}
|
||||
}
|
||||
|
||||
if (batt_soc >= 80) {
|
||||
//Read the vbat aggin after the soc above 80%
|
||||
if (batt_soc >= 65) {
|
||||
//Read the vbat aggin after the soc above 65%
|
||||
msleep(20);
|
||||
rc = power_supply_get_property(chrg_list->chrg_dev[CP_MASTER]->chrg_psy,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_NOW, &prop);
|
||||
|
||||
@@ -603,8 +603,8 @@ void mmi_qc3p_chrg_sm_work_func(struct work_struct *work)
|
||||
chrg_list->chrg_dev[PMIC_SW]->charger_limited = true;
|
||||
}
|
||||
|
||||
if (batt_soc >= 80) {
|
||||
//Read the vbat aggin after the soc above 80%
|
||||
if (batt_soc >= 65) {
|
||||
//Read the vbat aggin after the soc above 65%
|
||||
msleep(20);
|
||||
rc = power_supply_get_property(chrg_list->chrg_dev[CP_MASTER]->chrg_psy,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_NOW, &prop);
|
||||
|
||||
Reference in new issue
Block a user