aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIvan T. Ivanov <iivanov@mm-sol.com>2014-04-28 09:34:15 -0400
committerFelipe Balbi <balbi@ti.com>2014-04-30 12:28:44 -0400
commit8364f9af237f47fa128bd4e4f7b45beef890c994 (patch)
tree8508652e8e910d97ef6ac89df1104ef861099098 /include/linux
parentf60c114a3ae528dfc6750baad58cf822d0b282a2 (diff)
usb: phy: msm: Add device tree support and binding information
Allows controller to be specified via device tree. Signed-off-by: Ivan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/usb/msm_hsusb.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/usb/msm_hsusb.h b/include/linux/usb/msm_hsusb.h
index 262ed80a0b9e..bd68299c278e 100644
--- a/include/linux/usb/msm_hsusb.h
+++ b/include/linux/usb/msm_hsusb.h
@@ -100,8 +100,9 @@ enum usb_chg_type {
100/** 100/**
101 * struct msm_otg_platform_data - platform device data 101 * struct msm_otg_platform_data - platform device data
102 * for msm_otg driver. 102 * for msm_otg driver.
103 * @phy_init_seq: PHY configuration sequence. val, reg pairs 103 * @phy_init_seq: PHY configuration sequence values. Value of -1 is reserved as
104 * terminated by -1. 104 * "do not overwrite default vaule at this address".
105 * @phy_init_sz: PHY configuration sequence size.
105 * @vbus_power: VBUS power on/off routine. 106 * @vbus_power: VBUS power on/off routine.
106 * @power_budget: VBUS power budget in mA (0 will be treated as 500mA). 107 * @power_budget: VBUS power budget in mA (0 will be treated as 500mA).
107 * @mode: Supported mode (OTG/peripheral/host). 108 * @mode: Supported mode (OTG/peripheral/host).
@@ -109,6 +110,7 @@ enum usb_chg_type {
109 */ 110 */
110struct msm_otg_platform_data { 111struct msm_otg_platform_data {
111 int *phy_init_seq; 112 int *phy_init_seq;
113 int phy_init_sz;
112 void (*vbus_power)(bool on); 114 void (*vbus_power)(bool on);
113 unsigned power_budget; 115 unsigned power_budget;
114 enum usb_dr_mode mode; 116 enum usb_dr_mode mode;