summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2016-04-12 16:01:19 +0530
committerSimon Glass <sjg@chromium.org>2016-05-17 09:54:43 -0600
commitc0c62d923344d5a68f43259282e68a827318db01 (patch)
treede99ce84f4cdf3343ec536e9d350f5d0d9b79d6c /include
parent9300f711baac8a181f70d7f64978e4bbadd4ac5c (diff)
downloadtalos-obmc-uboot-c0c62d923344d5a68f43259282e68a827318db01.tar.gz
talos-obmc-uboot-c0c62d923344d5a68f43259282e68a827318db01.zip
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')
-rw-r--r--include/linux/usb/otg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
index 7ec5550f4b..8f8ac6aeef 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 */
OpenPOWER on IntegriCloud