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

Commit fd72c453 authored by Pratham Pratap's avatar Pratham Pratap Committed by Gerrit - the friendly Code Review server
Browse files

usb: phy: qmp: Add portselect for USB3 only phy



This change adds portselect for USB3 only phy and
changes the offset of MISC_TYPEC_CTRL register.

Change-Id: I706f87493ca478455db7077af653b66d565ee5f6
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent 77880ea2
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -92,6 +92,9 @@ enum qmp_phy_rev_reg {
	USB3_PHY_SW_RESET,
	USB3_PHY_START,

	/* TypeC port select configuration (optional) */
	USB3_PHY_PCS_MISC_TYPEC_CTRL,

	/* USB DP Combo PHY related */
	USB3_DP_DP_PHY_PD_CTL,
	USB3_DP_COM_POWER_DOWN_CTRL,
@@ -104,8 +107,6 @@ enum qmp_phy_rev_reg {
	USB3_DP_PCS_PCS_STATUS2,
	USB3_DP_PCS_INSIG_SW_CTRL3,
	USB3_DP_PCS_INSIG_MX_CTRL3,
	/* TypeC port select configuration (optional) */
	USB3_PHY_PCS_MISC_TYPEC_CTRL,
	USB3_PHY_REG_MAX,
};

@@ -393,6 +394,7 @@ static void usb_qmp_update_portselect_phymode(struct msm_ssphy_qmp *phy)
			phy->base + phy->phy_reg[USB3_DP_COM_RESET_OVRD_CTRL]);
		break;
	case  USB_PHY_TYPE_USB3_OR_DP:
	case  USB_PHY_TYPE_USB3:
		if (val > 0) {
			dev_err(phy->phy.dev,
				"USB QMP PHY: Update TYPEC CTRL(%d)\n", val);