diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2016-04-12 16:01:19 +0530 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-05-17 09:54:43 -0600 |
commit | c0c62d923344d5a68f43259282e68a827318db01 (patch) | |
tree | de99ce84f4cdf3343ec536e9d350f5d0d9b79d6c /include/linux/usb | |
parent | 9300f711baac8a181f70d7f64978e4bbadd4ac5c (diff) | |
download | u-boot-imx-c0c62d923344d5a68f43259282e68a827318db01.zip u-boot-imx-c0c62d923344d5a68f43259282e68a827318db01.tar.gz u-boot-imx-c0c62d923344d5a68f43259282e68a827318db01.tar.bz2 |
drivers: usb: common: add common code for usb drivers to use
Add common usb code which usb drivers makes use of it.
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/otg.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h index 7ec5550..8f8ac6a 100644 --- a/include/linux/usb/otg.h +++ b/include/linux/usb/otg.h @@ -17,4 +17,13 @@ enum usb_dr_mode { USB_DR_MODE_OTG, }; +/** + * usb_get_dr_mode() - Get dual role mode for given device + * @node: Node offset to the given device + * + * The function gets phy interface string from property 'dr_mode', + * and returns the correspondig enum usb_dr_mode + */ +enum usb_dr_mode usb_get_dr_mode(int node); + #endif /* __LINUX_USB_OTG_H */ |