summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2016-01-23 21:04:46 +0100
committerMarek Vasut <marex@denx.de>2016-02-24 19:12:32 +0100
commit7ab0d35543004b6f9dca990625fa3fa21b7bc9d6 (patch)
treedee69a6adb28f991938f95cc5f300594bfc7f4bd
parentcf7c93cdd75570fe6f75d04177b94a84146f5e46 (diff)
downloadu-boot-imx-7ab0d35543004b6f9dca990625fa3fa21b7bc9d6.zip
u-boot-imx-7ab0d35543004b6f9dca990625fa3fa21b7bc9d6.tar.gz
u-boot-imx-7ab0d35543004b6f9dca990625fa3fa21b7bc9d6.tar.bz2
usb: ehci: Clear USBMODE_BE on LE MMIO
If the USB EHCI is configured for little endian MMIO, make sure to clear the USBMODE_BE flag from the USBMODE register. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Hans de Goede <hdegoede@redhat.com>
-rw-r--r--drivers/usb/host/ehci-hcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
index b3eb08d..8f259be 100644
--- a/drivers/usb/host/ehci-hcd.c
+++ b/drivers/usb/host/ehci-hcd.c
@@ -134,6 +134,8 @@ static void ehci_set_usbmode(struct ehci_ctrl *ctrl)
tmp |= USBMODE_CM_HC;
#if defined(CONFIG_EHCI_MMIO_BIG_ENDIAN)
tmp |= USBMODE_BE;
+#else
+ tmp &= ~USBMODE_BE;
#endif
ehci_writel(reg_ptr, tmp);
}