diff options
author | Marek Vasut <marex@denx.de> | 2016-01-23 21:04:46 +0100 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2016-02-24 19:12:32 +0100 |
commit | 7ab0d35543004b6f9dca990625fa3fa21b7bc9d6 (patch) | |
tree | dee69a6adb28f991938f95cc5f300594bfc7f4bd /drivers/usb/host | |
parent | cf7c93cdd75570fe6f75d04177b94a84146f5e46 (diff) |
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>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ehci-hcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index b3eb08d506..8f259bee4f 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); } |