]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: xhci: fsl: Removing unused function usb_phy_reset
authorRajesh Bhagat <rajesh.bhagat@freescale.com>
Wed, 2 Dec 2015 06:14:28 +0000 (11:44 +0530)
committerMarek Vasut <marex@denx.de>
Sun, 6 Dec 2015 23:15:00 +0000 (00:15 +0100)
This patch removes unsued function usb_phy_reset, rather common function
dwc3_phy_reset is used.

Signed-off-by: Rajesh Bhagat <rajesh.bhagat@freescale.com>
drivers/usb/host/xhci-fsl.c

index 6481e078230e49ce984d5225b50cdfd255a54e65..05f09d7600b803a183709121eeed33d1d21bb840 100644 (file)
@@ -27,23 +27,6 @@ __weak int __board_usb_init(int index, enum usb_init_type init)
        return 0;
 }
 
-void usb_phy_reset(struct dwc3 *dwc3_reg)
-{
-       /* Assert USB3 PHY reset */
-       setbits_le32(&dwc3_reg->g_usb3pipectl[0], DWC3_GUSB3PIPECTL_PHYSOFTRST);
-
-       /* Assert USB2 PHY reset */
-       setbits_le32(&dwc3_reg->g_usb2phycfg, DWC3_GUSB2PHYCFG_PHYSOFTRST);
-
-       mdelay(200);
-
-       /* Clear USB3 PHY reset */
-       clrbits_le32(&dwc3_reg->g_usb3pipectl[0], DWC3_GUSB3PIPECTL_PHYSOFTRST);
-
-       /* Clear USB2 PHY reset */
-       clrbits_le32(&dwc3_reg->g_usb2phycfg, DWC3_GUSB2PHYCFG_PHYSOFTRST);
-}
-
 static int fsl_xhci_core_init(struct fsl_xhci *fsl_xhci)
 {
        int ret = 0;