mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
smb5-lib: config QC2.0 charging current 1.5A
QC2.0 adapter only support 1.6A output current, so config 1.5A for QC2.0 charger. refer to https://gerrit.mot.com/1430172 Change-Id: I05bad6d5f9f59ccb19beb987271bc412c12ff7f1 Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/1770254 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
f59ce68e55
commit
c51b3de0de
1 changed files with 4 additions and 1 deletions
|
|
@ -5079,7 +5079,10 @@ int smblib_get_charge_current(struct smb_charger *chg,
|
|||
typec_source_rd = smblib_get_prop_ufp_mode(chg);
|
||||
|
||||
/* QC 2.0/3.0 adapter */
|
||||
if (apsd_result->bit & (QC_3P0_BIT | QC_2P0_BIT)) {
|
||||
if (apsd_result->bit & QC_2P0_BIT) {
|
||||
*total_current_ua = chg->chg_param.hvdcp2_max_icl_ua;
|
||||
return 0;
|
||||
} else if (apsd_result->bit & QC_3P0_BIT){
|
||||
*total_current_ua = HVDCP_CURRENT_UA;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue