|
@@ -216,6 +216,8 @@ static void ehci_fsl_setup_phy(struct ehci_hcd *ehci,
|
|
|
unsigned int port_offset)
|
|
|
{
|
|
|
u32 portsc;
|
|
|
+ struct usb_hcd *hcd = ehci_to_hcd(ehci);
|
|
|
+ void __iomem *non_ehci = hcd->regs;
|
|
|
|
|
|
portsc = ehci_readl(ehci, &ehci->regs->port_status[port_offset]);
|
|
|
portsc &= ~(PORT_PTS_MSK | PORT_PTS_PTW);
|
|
@@ -231,6 +233,8 @@ static void ehci_fsl_setup_phy(struct ehci_hcd *ehci,
|
|
|
portsc |= PORT_PTS_PTW;
|
|
|
/* fall through */
|
|
|
case FSL_USB2_PHY_UTMI:
|
|
|
+ /* enable UTMI PHY */
|
|
|
+ setbits32(non_ehci + FSL_SOC_USB_CTRL, CTRL_UTMI_PHY_EN);
|
|
|
portsc |= PORT_PTS_UTMI;
|
|
|
break;
|
|
|
case FSL_USB2_PHY_NONE:
|