mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
different charge termination current at 35-45 temperature range
Different charge termination current at 35-45 degC temp range per battery spec. Change-Id: I4aaf296f432d86fe21117bd09f0ce8f769697f3f Signed-off-by: xuwei9 <xuwei9@lenovo.com> Reviewed-on: https://gerrit.mot.com/2702443 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
39d8af553a
commit
1b85a5a6f7
1 changed files with 12 additions and 0 deletions
|
|
@ -147,6 +147,7 @@ struct mmi_charger_profile {
|
|||
//for not FFC battery profile
|
||||
int noffc_fg_iterm;
|
||||
int noffc_chrg_iterm;
|
||||
int noffc_chrg_iterm_35_45c;
|
||||
int noffc_max_fv_mv;
|
||||
|
||||
int shutdown_empty_vbat_mv;
|
||||
|
|
@ -963,6 +964,11 @@ static int mmi_get_charger_profile(struct mmi_charger_chip *chip,
|
|||
|
||||
charger->profile.noffc_chrg_iterm = charger->profile.chrg_iterm;
|
||||
|
||||
rc = of_property_read_u32(node, "mmi,chrg-iterm-ma-noffc-35-45c",
|
||||
&charger->profile.noffc_chrg_iterm_35_45c);
|
||||
if (rc)
|
||||
charger->profile.noffc_chrg_iterm_35_45c = -1;
|
||||
|
||||
rc = of_property_read_u32(node, "mmi,fg-iterm-ma",
|
||||
&charger->profile.fg_iterm);
|
||||
if (rc)
|
||||
|
|
@ -1099,6 +1105,12 @@ static void mmi_update_charger_profile(struct mmi_charger_chip *chip,
|
|||
charger->profile.max_fv_mv = charger->profile.noffc_max_fv_mv;
|
||||
charger->profile.fg_iterm = charger->profile.noffc_fg_iterm;
|
||||
charger->profile.chrg_iterm = charger->profile.noffc_chrg_iterm;
|
||||
|
||||
temp = charger->batt_info.batt_temp;
|
||||
if(charger->profile.noffc_chrg_iterm_35_45c > 0 && temp >= 35 && temp <= 45) {
|
||||
charger->profile.chrg_iterm = charger->profile.noffc_chrg_iterm_35_45c;
|
||||
pr_info("enter mmi_update_charger_profile with temp:%d, chrg_iterm:%d, noffc_chrg_iterm_35_45c:%d\n", temp, charger->profile.chrg_iterm, charger->profile.noffc_chrg_iterm_35_45c);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue