aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/host/ohci.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-05-10 14:10:25 +0200
committerSimon Glass <sjg@chromium.org>2015-05-14 18:49:32 -0600
commit58b4048f64072ae543de96d850cc8967c32bc901 (patch)
treeb66db8a11f94a76baedc9c6e66d0e260eb3ba125 /drivers/usb/host/ohci.h
parent8f761f023c1b53ff3469f4da9d9516ce3d4c7d89 (diff)
downloadu-boot-58b4048f64072ae543de96d850cc8967c32bc901.zip
u-boot-58b4048f64072ae543de96d850cc8967c32bc901.tar.gz
u-boot-58b4048f64072ae543de96d850cc8967c32bc901.tar.bz2
usb: ohci: Add dm support
Add driver-model support to the ohci code. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/usb/host/ohci.h')
-rw-r--r--drivers/usb/host/ohci.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci.h b/drivers/usb/host/ohci.h
index f52b4c1..3f9869b 100644
--- a/drivers/usb/host/ohci.h
+++ b/drivers/usb/host/ohci.h
@@ -405,3 +405,10 @@ typedef struct ohci {
const char *slot_name;
} ohci_t;
+
+#ifdef CONFIG_DM_USB
+extern struct dm_usb_ops ohci_usb_ops;
+
+int ohci_register(struct udevice *dev, struct ohci_regs *regs);
+int ohci_deregister(struct udevice *dev);
+#endif