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

Commit 4653b767 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 6e23360c 720fedce
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2595,6 +2595,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);