summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Li <Frank.Li@freescale.com>2009-12-11 15:16:06 +0800
committerDavid Ungar <david.ungar@timesys.com>2010-04-19 17:03:39 -0400
commitdb2a05c49ba31c6f3d6e9c7fed1797e97014f7bc (patch)
treeabf9bff0b11a0d709f665c90eaf1203f58282da5
parentdb48cd5afe60707a1ee1b9dfd454cb9963c5c937 (diff)
ENGR00119075 fix iMX23 USB initialization cause wrong power status
USB initialization set power status register to wrong status. Cause power state change dead loop. Remove EA code using debug register to control HW_POWER_STS bit. That is not perfered. Signed-off-by: Frank Li <Frank.Li@freescale.com>
-rw-r--r--arch/arm/plat-stmp3xxx/usb_common.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/plat-stmp3xxx/usb_common.c b/arch/arm/plat-stmp3xxx/usb_common.c
index aac884cd1eb6..af4e35d5e95c 100644
--- a/arch/arm/plat-stmp3xxx/usb_common.c
+++ b/arch/arm/plat-stmp3xxx/usb_common.c
@@ -206,21 +206,6 @@ struct platform_device *host_pdev_register(struct resource *res, int n_res,
int usb_phy_enable(void)
{
u32 tmp;
- /*
- * Set these bits so that we can force the OTG bits high
- * so the ARC core operates properly
- */
- stmp3xxx_clearl(BM_POWER_CTRL_CLKGATE,
- REGS_POWER_BASE + HW_POWER_CTRL);
- stmp3xxx_setl(BM_POWER_DEBUG_VBUSVALIDPIOLOCK |
- BM_POWER_DEBUG_AVALIDPIOLOCK |
- BM_POWER_DEBUG_BVALIDPIOLOCK,
- REGS_POWER_BASE + HW_POWER_DEBUG);
- tmp = __raw_readl(REGS_POWER_BASE + HW_POWER_STS);
- tmp |= BM_POWER_STS_BVALID | BM_POWER_STS_AVALID |
- BM_POWER_STS_VBUSVALID;
- __raw_writel(tmp, REGS_POWER_BASE + HW_POWER_STS);
-
/* Reset USBPHY module */
stmp3xxx_setl(BM_USBPHY_CTRL_SFTRST,
REGS_USBPHY_BASE + HW_USBPHY_CTRL);