diff options
author | Li Jun <jun.li@freescale.com> | 2015-06-04 16:55:33 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:29 -0500 |
commit | 53c8ac6e334cc030f8b1c69678cbd28707d78d9e (patch) | |
tree | d3f44c1abd49170edcf1926dd1e036361c89d070 /include | |
parent | 0202970e6027964a0277b24350a3fe93c9bdb214 (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.h | 5 |
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) |