mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
charging: vote PD ICL 3A when PD connected
As vote 500ma when PD active, it will load to ICL only 500ma in main charger side, so need vote 3A when cp active. Change-Id: Ia6ddb0632c5e61f90d7633dbc0ff871366f24875 Signed-off-by: Haijian Ma <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2264803 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b3abad7222
commit
2496d8de1f
1 changed files with 4 additions and 0 deletions
|
|
@ -842,6 +842,10 @@ static void mmi_discrete_config_pd_charger(struct mmi_discrete_charger *chg)
|
|||
struct adapter_power_cap cap;
|
||||
int vbus_mv;
|
||||
|
||||
if (chg->pd_active && chg->cp_active) {
|
||||
vote(chg->usb_icl_votable, PD_VOTER, true, TYPEC_HIGH_CURRENT_UA);
|
||||
}
|
||||
|
||||
rc = get_prop_usb_present(chg, &val);
|
||||
if (rc < 0) {
|
||||
mmi_err(chg, "Couldn't get usb present rc = %d\n", rc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue