summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2010-11-08 15:27:04 +0800
committerScott Sweeny <scott.sweeny@timesys.com>2011-01-19 11:50:21 -0500
commitb313f5688b303171e20b1ab0dd55085a9b111b5d (patch)
treef5e77800a004e6d28230531afdae6df191f052ba
parentd92418e7d4e03b20b1d2267e75e7c976fb893320 (diff)
ENGR00133485 mx28: low speed device doesn't be supported at otg port
Fix bug that low speed device doesn't be supported at otg port Signed-off-by: Peter Chen <peter.chen@freescale.com>
-rw-r--r--arch/arm/plat-mxs/usb_common.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/plat-mxs/usb_common.c b/arch/arm/plat-mxs/usb_common.c
index d8da3dd6676c..5e481d8baf8a 100644
--- a/arch/arm/plat-mxs/usb_common.c
+++ b/arch/arm/plat-mxs/usb_common.c
@@ -275,12 +275,11 @@ int usbotg_init(struct platform_device *pdev)
tmp &= ~PORTSC_PHCD;
__raw_writel(tmp, pdata->regs + UOG_PORTSC1);
- if (pdata->operating_mode == FSL_USB2_DR_HOST) {
+ if ((pdata->operating_mode == FSL_USB2_DR_HOST) ||
+ (pdata->operating_mode == FSL_USB2_DR_OTG)) {
/* enable FS/LS device */
- tmp = __raw_readl(IO_ADDRESS(pdata->phy_regs) + HW_USBPHY_CTRL);
- tmp |= (BM_USBPHY_CTRL_ENUTMILEVEL2 |
- BM_USBPHY_CTRL_ENUTMILEVEL3);
- __raw_writel(tmp, IO_ADDRESS(pdata->phy_regs) + HW_USBPHY_CTRL);
+ __raw_writel(BM_USBPHY_CTRL_ENUTMILEVEL2 | BM_USBPHY_CTRL_ENUTMILEVEL3
+ , IO_ADDRESS(pdata->phy_regs) + HW_USBPHY_CTRL_SET);
}
otg_used++;