summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2015-11-04 16:40:36 +0800
committerYe.Li <B37916@freescale.com>2015-11-04 16:48:32 +0800
commitf78cbee0375dcb81b10bac2e0dcd254d0551baa9 (patch)
treeed4ac5fa9d87f6ce6cb3627dc3fb79868d5b1e77
parentb16ae36d2ae3fa9f536fec691a3e1bfa6f26a8d0 (diff)
downloadu-boot-imx-f78cbee0375dcb81b10bac2e0dcd254d0551baa9.zip
u-boot-imx-f78cbee0375dcb81b10bac2e0dcd254d0551baa9.tar.gz
u-boot-imx-f78cbee0375dcb81b10bac2e0dcd254d0551baa9.tar.bz2
MLK-11823 USB:gadget Fix USB port interface issue in ci_udc driver
The ci_udc driver tries to use the ULPI interface for the USB OTG controller, but this type is not supported by all i.MX6 and i.MX7 platforms. When setting to ULPI, other platforms except the 6UL refuse the settings and keep default value. But on 6UL, the PTW bit of PORTSC1 register which is documented as RO can change. This cause the interface setting problem with USB PHY. Fix the issue by removing the ULPI setting for i.MX6 and i.MX7. All will use default UTMI setting. Signed-off-by: Ye.Li <B37916@freescale.com>
-rw-r--r--drivers/usb/gadget/ci_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c
index 1dd8b11..70ac819 100644
--- a/drivers/usb/gadget/ci_udc.c
+++ b/drivers/usb/gadget/ci_udc.c
@@ -888,7 +888,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
return ret;
ret = ci_udc_probe();
-#if defined(CONFIG_USB_EHCI_MX6) || defined(CONFIG_USB_EHCI_MXS) || defined(CONFIG_USB_EHCI_MX7)
+#if defined(CONFIG_USB_EHCI_MXS)
/*
* FIXME: usb_lowlevel_init()->ehci_hcd_init() should be doing all
* HW-specific initialization, e.g. ULPI-vs-UTMI PHY selection