Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 775381a2 authored by Harry Yang's avatar Harry Yang Committed by Harry Yang
Browse files

power: smb5-lib: set DCP ICL based on Rp value



Currently, for DCP charger, USB ICL is always set to 1.5A in case of
Type-C legacy cable connection, regardless of Rp value. The latest HW
spec requests the opposite that DCP ICL should be solely based on Rp
value.

Hence the change.

Change-Id: Ic9f2e3e08244a5d721dfeab6501f753c927b586f
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 9a215320
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5136,8 +5136,8 @@ static void update_sw_icl_max(struct smb_charger *chg, int pst)
					CDP_CURRENT_UA);
		break;
	case POWER_SUPPLY_TYPE_USB_DCP:
		vote(chg->usb_icl_votable, SW_ICL_MAX_VOTER, true,
					DCP_CURRENT_UA);
		rp_ua = get_rp_based_dcp_current(chg, typec_mode);
		vote(chg->usb_icl_votable, SW_ICL_MAX_VOTER, true, rp_ua);
		break;
	case POWER_SUPPLY_TYPE_USB_FLOAT:
		/*