summaryrefslogtreecommitdiff
path: root/include/linux/usb/ehci.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2023-04-19 08:59:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-19 08:59:15 +0200
commite0f1115ebb757cebbc0cf7dd92a586e3dad19b77 (patch)
treef694ff849990cbfa962f49954266b5aa6eadf7eb /include/linux/usb/ehci.h
parentd5a06d4800305af6740cde3894d8f4b65b26b392 (diff)
parent0a73158341d5d3ef1e79e0d77a177121ef502930 (diff)
downloadbarebox-e0f1115ebb757cebbc0cf7dd92a586e3dad19b77.tar.gz
Merge branch 'for-next/usb'
Diffstat (limited to 'include/linux/usb/ehci.h')
-rw-r--r--include/linux/usb/ehci.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/include/linux/usb/ehci.h b/include/linux/usb/ehci.h
new file mode 100644
index 0000000000..9ce6c98ace
--- /dev/null
+++ b/include/linux/usb/ehci.h
@@ -0,0 +1,41 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef __USB_EHCI_H
+#define __USB_EHCI_H
+
+#define EHCI_HAS_TT (1 << 0)
+
+struct ehci_platform_data {
+ unsigned long flags;
+};
+
+struct ehci_data {
+ void __iomem *hccr;
+ void __iomem *hcor;
+ unsigned long flags;
+ struct usb_phy *usbphy;
+
+ /* platform specific init functions */
+ int (*init)(void *drvdata);
+ int (*post_init)(void *drvdata);
+ void *drvdata;
+};
+
+struct ehci_host;
+
+#ifdef CONFIG_USB_EHCI
+struct ehci_host *ehci_register(struct device *dev, struct ehci_data *data);
+void ehci_unregister(struct ehci_host *);
+#else
+static inline struct ehci_host *ehci_register(struct device *dev,
+ struct ehci_data *data)
+{
+ return ERR_PTR(-ENOSYS);
+}
+
+static inline void ehci_unregister(struct ehci_host *ehci)
+{
+}
+#endif
+
+#endif /* __USB_EHCI_H */