diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-06-17 21:33:52 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:36 -0600 |
commit | b2f219b081de964583a5621bc59d43eb75521598 (patch) | |
tree | 5506064bbdadabdc4d785c64e7ff79f7a2203727 /include | |
parent | 9b510df703d282effba4f56ac567aa8011d56e6b (diff) | |
download | u-boot-imx-b2f219b081de964583a5621bc59d43eb75521598.zip u-boot-imx-b2f219b081de964583a5621bc59d43eb75521598.tar.gz u-boot-imx-b2f219b081de964583a5621bc59d43eb75521598.tar.bz2 |
dm: usb: Allow usb host drivers to implement usb_reset_root_port
Allow usb uclass host drivers to implement usb_reset_root_port, this is
used by single port usb hosts which do not emulate a hub, such as otg
controllers.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usb.h b/include/usb.h index 2bb6a06..25f8543 100644 --- a/include/usb.h +++ b/include/usb.h @@ -705,6 +705,11 @@ struct dm_usb_ops { * is read). This should be NULL for EHCI, which does not need this. */ int (*alloc_device)(struct udevice *bus, struct usb_device *udev); + + /** + * reset_root_port() - Reset usb root port + */ + int (*reset_root_port)(struct udevice *bus, struct usb_device *udev); }; #define usb_get_ops(dev) ((struct dm_usb_ops *)(dev)->driver->ops) |