mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
charging: force 5V/2A
force 5V/2A charging for bring up process This is only a temp patch. We need revert it after charging policy ready. Change-Id: I3b05ee22b59ac8c2febf8b956fa051f8d6f0b334 Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/2076418 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
a6e5f91024
commit
bba95008f0
1 changed files with 8 additions and 0 deletions
|
|
@ -1212,6 +1212,11 @@ static void charger_monitor_work_func(struct work_struct *work)
|
|||
//goto OUT;
|
||||
}
|
||||
|
||||
//MMI_STOPSHIP PMIC:force 5V2A charging
|
||||
sgm4154x_set_input_curr_lim(sgm, 2400000);
|
||||
sgm4154x_set_ichrg_curr(sgm, SGM4154x_ICHRG_I_DEF_uA);
|
||||
sgm4154x_set_chrg_volt(sgm,4400000);
|
||||
|
||||
sgm4154x_dump_register(sgm);
|
||||
pr_err("%s\n",__func__);
|
||||
//OUT:
|
||||
|
|
@ -1434,9 +1439,12 @@ static void charger_detect_work_func(struct work_struct *work)
|
|||
return;
|
||||
}
|
||||
|
||||
curr_in_limit = 2400000;
|
||||
//set charge parameters
|
||||
dev_err(sgm->dev, "Update: curr_in_limit = %d\n", curr_in_limit);
|
||||
sgm4154x_set_input_curr_lim(sgm, curr_in_limit);
|
||||
sgm4154x_set_ichrg_curr(sgm, SGM4154x_ICHRG_I_DEF_uA);
|
||||
sgm4154x_set_chrg_volt(sgm,4400000);
|
||||
|
||||
//notify charging policy to update charger type
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue