summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLi Jun <jun.li@freescale.com>2015-06-04 16:55:33 +0800
committerLi Jun <jun.li@freescale.com>2015-06-05 16:05:57 +0800
commit7ede7ff90d6f1ca128a7287871b9bcf5a9c8a4b7 (patch)
treeaf044dd71aef2e5b39ce27f57f9128bccc630589 /include
parent1b105a294bf187701df4ac77e6a9e806f7e4c98d (diff)
MLK-11005-1 usb: common: add API to get if OTG ADP is support in device tree
Check property of usb hardware to get if ADP is supported. Signed-off-by: Li Jun <jun.li@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/of.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/usb/of.h b/include/linux/usb/of.h
index cfe0528cdbb1..4a34f955f884 100644
--- a/include/linux/usb/of.h
+++ b/include/linux/usb/of.h
@@ -15,6 +15,7 @@
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);
#else
static inline enum usb_dr_mode of_usb_get_dr_mode(struct device_node *np)
{
@@ -30,6 +31,10 @@ static inline bool of_usb_host_tpl_support(struct device_node *np)
{
return false;
}
+static inline bool of_usb_otg_srp_support(struct device_node *np)
+{
+ return false;
+}
#endif
#if IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_USB_SUPPORT)