mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
charging: report power max 30W when usb type is qc3p
As "turbopower connected" appears twice, so report power max 30W when usb type is qc3p. Change-Id: Ife81a9763022d74079b091eed0b33c535885e57b Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2181964 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
6a64c7429e
commit
63ebcc1b0c
1 changed files with 3 additions and 2 deletions
|
|
@ -2262,9 +2262,10 @@ static int mmi_discrete_get_chg_info(void *data, struct mmi_charger_info *chg_in
|
|||
chip->chg_info.chrg_pmax_mw = chip->constraint.dcp_pmax;
|
||||
else if (usb_type == POWER_SUPPLY_TYPE_USB_HVDCP)
|
||||
chip->chg_info.chrg_pmax_mw = 7500;
|
||||
else if (usb_type == POWER_SUPPLY_TYPE_USB_HVDCP_3 ||
|
||||
usb_type == POWER_SUPPLY_TYPE_USB_HVDCP_3P5)
|
||||
else if (usb_type == POWER_SUPPLY_TYPE_USB_HVDCP_3)
|
||||
chip->chg_info.chrg_pmax_mw = chip->constraint.hvdcp_pmax;
|
||||
else if (usb_type == POWER_SUPPLY_TYPE_USB_HVDCP_3P5)
|
||||
chip->chg_info.chrg_pmax_mw = 30000;
|
||||
else if (usb_type == POWER_SUPPLY_TYPE_USB_PD)
|
||||
chip->chg_info.chrg_pmax_mw = chip->constraint.pd_pmax;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue