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:
mahj8 2022-05-10 18:10:31 +08:00 • committed by Haijian Ma
commit 2496d8de1f

View file

@ -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);