summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-25 12:22:29 -0600
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:25 -0600
commit46b01797f48927bcb8f1bd138abe0da8119bdab4 (patch)
tree7c6a5a8f8d90742367afb43b7ab53c75f0d98da4 /drivers/usb/host/ehci.h
parentaeca43e3883e2a25a8ecb183555df9ac2da311a7 (diff)
downloadblackbird-obmc-uboot-46b01797f48927bcb8f1bd138abe0da8119bdab4.tar.gz
blackbird-obmc-uboot-46b01797f48927bcb8f1bd138abe0da8119bdab4.zip
dm: usb: Add driver model support to EHCI
Add a way for EHCI controller drivers to support driver model. Drivers can call ehci_register() to register themselves in their probe() methods. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index cc23e1fe93..774282d287 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -296,4 +296,10 @@ int ehci_hcd_init(int index, enum usb_init_type init,
struct ehci_hccr **hccr, struct ehci_hcor **hcor);
int ehci_hcd_stop(int index);
+int ehci_register(struct udevice *dev, struct ehci_hccr *hccr,
+ struct ehci_hcor *hcor, const struct ehci_ops *ops,
+ uint tweaks, enum usb_init_type init);
+int ehci_deregister(struct udevice *dev);
+extern struct dm_usb_ops ehci_usb_ops;
+
#endif /* USB_EHCI_H */
OpenPOWER on IntegriCloud