summaryrefslogtreecommitdiffstats
path: root/include/usb/ehci.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-11-27 23:34:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-12-13 17:47:42 +0100
commit15fd89d0a49f015e2b6078a28cb61400f4028e39 (patch)
tree8c137e2283b0684f9cc84ca86ef28590091eb1cf /include/usb/ehci.h
parent0ccb9aebcd98d99fdc22d938240c65c7466e8146 (diff)
downloadbarebox-15fd89d0a49f015e2b6078a28cb61400f4028e39.tar.gz
barebox-15fd89d0a49f015e2b6078a28cb61400f4028e39.tar.xz
USB ehci: Allow to register independently from device
The EHCI core often is part of a otg core. Allow it to be registered separately from another driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/ehci.h')
-rw-r--r--include/usb/ehci.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/usb/ehci.h b/include/usb/ehci.h
index 2ec862c84b..437711697d 100644
--- a/include/usb/ehci.h
+++ b/include/usb/ehci.h
@@ -5,8 +5,21 @@
struct ehci_platform_data {
unsigned long flags;
- unsigned long hccr_offset;
- unsigned long hcor_offset;
};
+struct ehci_data {
+ void __iomem *hccr;
+ void __iomem *hcor;
+ unsigned long flags;
+};
+
+#ifdef CONFIG_USB_EHCI
+int ehci_register(struct device_d *dev, struct ehci_data *data);
+#else
+static inline int ehci_register(struct device_d *dev, struct ehci_data *data)
+{
+ return -ENOSYS;
+}
+#endif
+
#endif /* __USB_EHCI_H */