summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-17 16:34:25 +0800
committerNitin Garg <nitin.garg@freescale.com>2015-09-17 09:23:51 -0500
commit9168a980005e3370207079aff5ae4fdca89be142 (patch)
tree80e7c93e9a03c4ebe2f35296a047b86e73304b4e /include
parentc8bbb07194ba64f8b05d9bc2ab7aea98304c1983 (diff)
MLK-11123-7 usb: common: add API to set otg features by device tree
Check property of usb hardware to get otg version and if SRP, HNP and ADP are disabled. Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/of.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
index 4a34f955f884..f652d6062309 100644
--- a/include/linux/usb/of.h
+++ b/include/linux/usb/of.h
@@ -16,6 +16,8 @@ enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np);
enum usb_device_speed of_usb_get_maximum_speed(struct device_node *np);
bool of_usb_host_tpl_support(struct device_node *np);
bool of_usb_otg_adp_support(struct device_node *np);
+void of_usb_set_otg_caps(struct device_node *np,
+ struct usb_otg_caps *otg_caps);
#else
static inline enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np)
{
@@ -35,6 +37,11 @@ static inline bool of_usb_otg_srp_support(struct device_node *np)
{
return false;
}
+static inline void of_usb_set_otg_caps(struct device_node *np,
+ struct usb_otg_caps *otg_caps)
+{
+
+}
#endif
#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_USB_SUPPORT)