summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorBenoît Thébaudeau <benoit.thebaudeau@advansee.com>2012-11-13 09:56:44 +0000
committerStefano Babic <sbabic@denx.de>2012-11-16 09:16:44 +0100
commit394c00dcfc9751030cbd9eb87ab2492d234f9ace (patch)
treeff1ee6bc21d13334069a815120425bc96b9c33bf /drivers/usb
parent7d42432d38af11f9d05398c3b6d29a54ab3322c8 (diff)
downloadu-boot-imx-394c00dcfc9751030cbd9eb87ab2492d234f9ace.zip
u-boot-imx-394c00dcfc9751030cbd9eb87ab2492d234f9ace.tar.gz
u-boot-imx-394c00dcfc9751030cbd9eb87ab2492d234f9ace.tar.bz2
ehci-mx5: Fix OPM usage
MXC_OTG_UCTRL_OPM_BIT disables (masks) the power/oc pins if set, like MXC_H1_UCTRL_H1PM_BIT and MXC_H2_UCTRL_H2PM_BIT, not the opposite. Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Marek Vasut <marex@denx.de> Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-mx5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c
index 72cde1a..8c1b70a 100644
--- a/drivers/usb/host/ehci-mx5.c
+++ b/drivers/usb/host/ehci-mx5.c
@@ -161,9 +161,9 @@ int mxc_set_usbcontrol(int port, unsigned int flags)
v = __raw_readl(usbother_base + MXC_USBCTRL_OFFSET);
if (flags & MXC_EHCI_POWER_PINS_ENABLED)
- v |= MXC_OTG_UCTRL_OPM_BIT;
- else
v &= ~MXC_OTG_UCTRL_OPM_BIT;
+ else
+ v |= MXC_OTG_UCTRL_OPM_BIT;
__raw_writel(v, usbother_base + MXC_USBCTRL_OFFSET);
}
break;