aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index e9ba8e252489..d0792f591590 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -128,6 +128,7 @@ struct ehci_hcd { /* one per controller */
128 unsigned has_fsl_port_bug:1; /* FreeScale */ 128 unsigned has_fsl_port_bug:1; /* FreeScale */
129 unsigned big_endian_mmio:1; 129 unsigned big_endian_mmio:1;
130 unsigned big_endian_desc:1; 130 unsigned big_endian_desc:1;
131 unsigned big_endian_capbase:1;
131 unsigned has_amcc_usb23:1; 132 unsigned has_amcc_usb23:1;
132 unsigned need_io_watchdog:1; 133 unsigned need_io_watchdog:1;
133 unsigned broken_periodic:1; 134 unsigned broken_periodic:1;
@@ -605,12 +606,18 @@ ehci_port_speed(struct ehci_hcd *ehci, unsigned int portsc)
605 * This attempts to support either format at compile time without a 606 * This attempts to support either format at compile time without a
606 * runtime penalty, or both formats with the additional overhead 607 * runtime penalty, or both formats with the additional overhead
607 * of checking a flag bit. 608 * of checking a flag bit.
609 *
610 * ehci_big_endian_capbase is a special quirk for controllers that
611 * implement the HC capability registers as separate registers and not
612 * as fields of a 32-bit register.
608 */ 613 */
609 614
610#ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO 615#ifdef CONFIG_USB_EHCI_BIG_ENDIAN_MMIO
611#define ehci_big_endian_mmio(e) ((e)->big_endian_mmio) 616#define ehci_big_endian_mmio(e) ((e)->big_endian_mmio)
617#define ehci_big_endian_capbase(e) ((e)->big_endian_capbase)
612#else 618#else
613#define ehci_big_endian_mmio(e) 0 619#define ehci_big_endian_mmio(e) 0
620#define ehci_big_endian_capbase(e) 0
614#endif 621#endif
615 622
616/* 623/*