diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-03-13 10:57:41 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2012-03-13 13:30:59 -0400 |
commit | 3429e91a661e1f383aecc86c6bbcf65afb15c892 (patch) | |
tree | ff3aa3ac0a8cb3ce8190511874a03ab2b13fc8ff /drivers/usb/host/xhci.h | |
parent | fdaf8b3183d126d70f19e13c690c762c65b28a5d (diff) |
usb: host: xhci: add platform driver support
This adds a fairly simple xhci-platform driver support. Currently it is
used by the dwc3 driver for supporting host mode.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r-- | drivers/usb/host/xhci.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 57cd632064b4..91074fdab3eb 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1663,6 +1663,17 @@ static inline int xhci_register_pci(void) { return 0; } | |||
1663 | static inline void xhci_unregister_pci(void) {} | 1663 | static inline void xhci_unregister_pci(void) {} |
1664 | #endif | 1664 | #endif |
1665 | 1665 | ||
1666 | #if defined(CONFIG_USB_XHCI_PLATFORM) \ | ||
1667 | || defined(CONFIG_USB_XHCI_PLATFORM_MODULE) | ||
1668 | int xhci_register_plat(void); | ||
1669 | void xhci_unregister_plat(void); | ||
1670 | #else | ||
1671 | static inline int xhci_register_plat(void) | ||
1672 | { return 0; } | ||
1673 | static inline void xhci_unregister_plat(void) | ||
1674 | { } | ||
1675 | #endif | ||
1676 | |||
1666 | /* xHCI host controller glue */ | 1677 | /* xHCI host controller glue */ |
1667 | typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); | 1678 | typedef void (*xhci_get_quirks_t)(struct device *, struct xhci_hcd *); |
1668 | void xhci_quiesce(struct xhci_hcd *xhci); | 1679 | void xhci_quiesce(struct xhci_hcd *xhci); |