charging: avoid icl =100ma for 33w charger

When battery capacity > 90%, inserted 33w charger, main charger
icl config 100ma and CP don't enable. So charging slow.
avoid icl config 100ma when detect 33W charger.

Change-Id: If450fcabc1a18bc01c5a03bd7e9ff8176f5d338f
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2174425
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-01-19 17:18:47 +08:00 • committed by Haijian Ma
commit 774a63cfbf

View file

@ -1855,7 +1855,8 @@ static void update_sw_icl_max(struct mmi_discrete_charger *chg)
* HVDCP 2/3, handled separately
*/
if (chg->real_charger_type == POWER_SUPPLY_TYPE_USB_HVDCP
|| chg->real_charger_type == POWER_SUPPLY_TYPE_USB_HVDCP_3)
|| chg->real_charger_type == POWER_SUPPLY_TYPE_USB_HVDCP_3
|| chg->real_charger_type == POWER_SUPPLY_TYPE_USB_HVDCP_3P5)
return;
/* TypeC rp med or high, use rp value */