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

Commit 720fedce authored by Kavya Nunna's avatar Kavya Nunna
Browse files

power: qpnp-smb5: Enable HVDCP authentication for non-PD charger design



HVDCP authentication is disabled by default for PD supporting chargers
(to allow PD before HVDCP). However, for charger which do not support PD,
HVDCP authentication needs to explicitly enabled.

Change-Id: I88a9671c52eb3614cbdf55acdba47a9e04bbc752
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent 757c4610
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2527,6 +2527,10 @@ static int smb5_init_hw(struct smb5 *chip)
	/* Set HVDCP autonomous mode per DT option */
	smblib_hvdcp_hw_inov_enable(chg, chip->dt.hvdcp_autonomous);

	/* Enable HVDCP authentication algorithm for non-PD designs */
	if (chg->pd_not_supported)
		smblib_hvdcp_detect_enable(chg, true);

	/* Disable HVDCP and authentication algorithm if specified in DT */
	if (chg->hvdcp_disable)
		smblib_hvdcp_detect_enable(chg, false);