diff options
author | Ye.Li <B37916@freescale.com> | 2015-12-31 15:24:45 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-01-16 07:06:55 +0100 |
commit | 8991fdef6d94b3c32722f413f399c3fce0b5061d (patch) | |
tree | 56465b97b5071d041995ab0050e16a2d35b0d83d /drivers/usb | |
parent | 782acf7b52db6bec1a796773e3033b4afcd6c9e2 (diff) | |
download | u-boot-imx-8991fdef6d94b3c32722f413f399c3fce0b5061d.zip u-boot-imx-8991fdef6d94b3c32722f413f399c3fce0b5061d.tar.gz u-boot-imx-8991fdef6d94b3c32722f413f399c3fce0b5061d.tar.bz2 |
usb:ci_udc: Remove ULPI setting for i.MX OTG controller
All the i.MX6, i.MX23 and i.MX28 OTG controllers only support UTMI
interface. Set to ULPI is not correct, even the controller will
reject this setting in PORTSC register.
Signed-off-by: Ye.Li <B37916@freescale.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/gadget/ci_udc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 1ba5054..d36bcf6 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -1018,18 +1018,10 @@ 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) - /* - * FIXME: usb_lowlevel_init()->ehci_hcd_init() should be doing all - * HW-specific initialization, e.g. ULPI-vs-UTMI PHY selection - */ - if (!ret) { - struct ci_udc *udc = (struct ci_udc *)controller.ctrl->hcor; - - /* select ULPI phy */ - writel(PTS(PTS_ENABLE) | PFSC, &udc->portsc); + if (ret) { + DBG("udc probe failed, returned %d\n", ret); + return ret; } -#endif ret = driver->bind(&controller.gadget); if (ret) { |