]> git.sur5r.net Git - u-boot/commitdiff
usb: ehci: Clear USBMODE_BE on LE MMIO
authorMarek Vasut <marex@denx.de>
Sat, 23 Jan 2016 20:04:46 +0000 (21:04 +0100)
committerMarek Vasut <marex@denx.de>
Wed, 24 Feb 2016 18:12:32 +0000 (19:12 +0100)
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>
drivers/usb/host/ehci-hcd.c

index b3eb08d5064ee925cccd0bb8548741b4d2e70742..8f259bee4f0b67c2816d654163798e39085af100 100644 (file)
@@ -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);
 }