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

Commit ed9203de authored by Elson Roy Serrao's avatar Elson Roy Serrao
Browse files

usb: PHY: Make default behavior as No external resistance



USB HS PHYs no longer use external resistor for tuning
adjustment. Make this behavior default instead of
defining the no external resistance property in
device tree.

Change-Id: Ibd5de075fa44083cab1f89583cccfb2e1a43cac8
Signed-off-by: default avatarElson Roy Serrao <eserrao@codeaurora.org>
parent 0ccdef37
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ struct msm_hsphy {
	bool			suspended;
	bool			cable_connected;
	bool			dpdm_enable;
	bool			no_rext_present;

	int			*param_override_seq;
	int			param_override_seq_cnt;
@@ -367,15 +366,6 @@ static int msm_hsphy_init(struct usb_phy *uphy)
				phy->rcal_mask, phy->phy_rcal_reg, rcal_code);
	}

	/*
	 * Use external resistor value only if:
	 * a. It is present and
	 * b. efuse is not programmed.
	 */
	if (!phy->no_rext_present && !rcal_code)
		msm_usb_write_readback(phy->base, USB2PHY_USB_PHY_RTUNE_SEL,
			RTUNE_SEL, RTUNE_SEL);

	msm_usb_write_readback(phy->base, USB2_PHY_USB_PHY_HS_PHY_CTRL_COMMON2,
				VREGBYPASS, VREGBYPASS);

@@ -655,9 +645,6 @@ static int msm_hsphy_probe(struct platform_device *pdev)
	if (IS_ERR(phy->phy_reset))
		return PTR_ERR(phy->phy_reset);

	phy->no_rext_present = of_property_read_bool(dev->of_node,
					"qcom,no-rext-present");

	phy->param_override_seq_cnt = of_property_count_elems_of_size(
					dev->of_node,
					"qcom,param-override-seq",