diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-21 11:22:20 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-11-21 12:08:14 +0100 |
commit | a2a05df5c5c45dce786b23d22700befddd0439ea (patch) | |
tree | e7cc7aa64d72e6ce0d88eb5ba615b8f48ec9ae61 /include | |
parent | 8478536463f4b43357049ea5b1c7e0da0f80b8fb (diff) | |
download | barebox-a2a05df5c5c45dce786b23d22700befddd0439ea.tar.gz barebox-a2a05df5c5c45dce786b23d22700befddd0439ea.tar.xz |
usb: Add function to register otg dev
We have two drivers in the tree which register an "otg" device to
configure the host/peripheral switching. Before introducing a third
driver create a common function for it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb/usb.h b/include/usb/usb.h index 0045608d64..d39de71aff 100644 --- a/include/usb/usb.h +++ b/include/usb/usb.h @@ -444,6 +444,9 @@ enum usb_phy_interface of_usb_get_phy_mode(struct device_node *np, enum usb_device_speed of_usb_get_maximum_speed(struct device_node *np, const char *propname); +int usb_register_otg_device(struct device_d *parent, + int (*set_mode)(void *ctx, enum usb_dr_mode mode), void *ctx); + extern struct list_head usb_device_list; #endif /*_USB_H_ */ |