linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/6] usb: fsl: Set USB_EN bit to select ULPI phy
@ 2019-01-21  3:12 Yinbo Zhu
  2019-01-21  3:13 ` [PATCH v1 2/6] usb: phy: Workaround for USB erratum-A005728 Yinbo Zhu
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Yinbo Zhu @ 2019-01-21  3:12 UTC (permalink / raw)
  To: Alan Stern
  Cc: yinbo.zhu, xiaobo.xie, jerry.huang, ran.wang_1,
	Greg Kroah-Hartman, Ramneek Mehresh, Nikhil Badola, Suresh Gupta,
	linux-usb, linux-kernel

From: Nikhil Badola <nikhil.badola@freescale.com>

Set USB_EN bit to select ULPI phy for USB controller version 2.5

Signed-off-by: Nikhil Badola <nikhil.badola@freescale.com>
Signed-off-by: yinbo.zhu <yinbo.zhu@nxp.com>
---
 drivers/usb/host/ehci-fsl.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 0a9fd20..71c4661 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -118,6 +118,12 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev)
 		clrsetbits_be32(hcd->regs + FSL_SOC_USB_CTRL,
 				CONTROL_REGISTER_W1C_MASK, 0x4);
 
+	/* Set USB_EN bit to select ULPI phy for USB controller version 2.5 */
+	if (pdata->controller_ver == FSL_USB_VER_2_5 &&
+		pdata->phy_mode == FSL_USB2_PHY_ULPI)
+		iowrite32be(USB_CTRL_USB_EN, hcd->regs + FSL_SOC_USB_CTRL);
+
+
 	/*
 	 * Enable UTMI phy and program PTS field in UTMI mode before asserting
 	 * controller reset for USB Controller version 2.5
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-01-21 10:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21  3:12 [PATCH v1 1/6] usb: fsl: Set USB_EN bit to select ULPI phy Yinbo Zhu
2019-01-21  3:13 ` [PATCH v1 2/6] usb: phy: Workaround for USB erratum-A005728 Yinbo Zhu
2019-01-21  7:46   ` Greg Kroah-Hartman
2019-01-21  3:13 ` [PATCH v1 3/6] usb: host: Stops USB controller init if PLL fails to lock Yinbo Zhu
2019-01-21  7:46   ` Greg Kroah-Hartman
2019-01-21  8:16   ` Sergei Shtylyov
2019-01-21 10:08     ` Yinbo Zhu
2019-01-21  3:13 ` [PATCH v1 4/6] usb: linux/fsl_device: Add platform member has_fsl_erratum_a006918 Yinbo Zhu
2019-01-21  3:13 ` [PATCH v1 5/6] usb: linux/fsl_device: Add platform member has_fsl_erratum_14 Yinbo Zhu
2019-01-21  3:13 ` [PATCH v1 6/6] usb :fsl: Change string format for errata property Yinbo Zhu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).