mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
parallel:init thermal parameter at high temp
At high temp conditon. thermal level was 4 at begining. the thermal parameter was not initialized. Change-Id: I787cfeb6c2ab1695a90496ba0c08e0ce4c17fffc Signed-off-by: xuwei9 <xuwei9@lenovo.com> Reviewed-on: https://gerrit.mot.com/2006952 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
7df3fd261b
commit
76e4591f92
2 changed files with 10 additions and 4 deletions
|
|
@ -1782,11 +1782,10 @@ static int mmi_chrg_manager_parse_dt(struct mmi_charger_manager *chip)
|
|||
}
|
||||
}
|
||||
|
||||
rc = of_property_read_u32(node,
|
||||
chip->afvc_volt_comp = 0;
|
||||
of_property_read_u32(node,
|
||||
"mmi,afvc_enable_compensation_uv",
|
||||
&chip->afvc_volt_comp);
|
||||
if (rc < 0)
|
||||
chip->afvc_volt_comp = 0;
|
||||
return rc;
|
||||
thermal_failed:
|
||||
devm_kfree(chip->dev,chip->thermal_mitigation);
|
||||
|
|
|
|||
|
|
@ -1364,7 +1364,14 @@ schedule:
|
|||
mmi_chrg_info(chip, "Thermal is the highest, level %d, "
|
||||
"Force enter into single pmic charging !\n",
|
||||
chip->system_thermal_level);
|
||||
|
||||
if(chip->pd_sys_therm_volt == 0)
|
||||
chip->pd_sys_therm_volt = SWITCH_CHARGER_PPS_VOLT;
|
||||
if(chip->pd_sys_therm_curr == 0)
|
||||
chip->pd_sys_therm_curr = TYPEC_HIGH_CURRENT_UA;
|
||||
if(chip->pd_batt_therm_volt == 0)
|
||||
chip->pd_batt_therm_volt = SWITCH_CHARGER_PPS_VOLT;
|
||||
if(chip->pd_batt_therm_curr == 0)
|
||||
chip->pd_batt_therm_curr = TYPEC_HIGH_CURRENT_UA;
|
||||
} else if (chip->system_thermal_level > 0 &&
|
||||
(sm_state == PM_STATE_CP_CC_LOOP ||
|
||||
sm_state == PM_STATE_CP_CV_LOOP)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue