diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-11-28 14:32:57 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-11-28 16:28:10 +0800 |
commit | b87e11f4e3dc6edca5854823713df358e75f07d1 (patch) | |
tree | cffc9b0af998e8da51c10ef87013e48078d1e135 /include | |
parent | a9497e6c68e298b6054a8e37c741897b84cab4b6 (diff) |
MLK-9931-1: usb: phy: add pull down line API
This API is used for platforms (may be specific for mxs PHY) which can
pull down 15K resistor when necessary
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/phy.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h index 987e121d6200..532525c34d94 100644 --- a/include/linux/usb/phy.h +++ b/include/linux/usb/phy.h @@ -127,6 +127,7 @@ struct usb_phy { enum usb_device_speed speed); int (*notify_resume)(struct usb_phy *x, enum usb_device_speed speed); + int (*pulldown_line)(struct usb_phy *x, bool pull_down); }; @@ -321,6 +322,15 @@ static inline int usb_phy_notify_resume return 0; } +static inline int usb_phy_pulldown_line + (struct usb_phy *x, bool pull_down) +{ + if (x && x->pulldown_line) + return x->pulldown_line(x, pull_down); + else + return 0; +} + /* notifiers */ static inline int usb_register_notifier(struct usb_phy *x, struct notifier_block *nb) |