diff options
| author | Tuomas Tynkkynen <ttynkkynen@nvidia.com> | 2013-07-25 14:38:09 -0400 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 06:58:27 -0400 |
| commit | 6558d7edbe069df1220b525362d4aa854a65a8bc (patch) | |
| tree | c21dfcbc13fddab0897284f159f7765d862c7ad6 /include/linux/usb | |
| parent | 9fdb07f72088ab5fc7bd6fd6f070fac53d636bd9 (diff) | |
usb: phy: tegra: Use DT helpers for dr_mode
Use the new of_usb_get_dr_mode helper function for parsing dr_mode
from the device tree. Also replace the usage of the custom
tegra_usb_phy_mode enum with the standard enum.
Signed-off-by: Tuomas Tynkkynen <ttynkkynen@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
| -rw-r--r-- | include/linux/usb/tegra_usb_phy.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/linux/usb/tegra_usb_phy.h b/include/linux/usb/tegra_usb_phy.h index a095c98184d0..d3db274610a1 100644 --- a/include/linux/usb/tegra_usb_phy.h +++ b/include/linux/usb/tegra_usb_phy.h | |||
| @@ -34,12 +34,6 @@ enum tegra_usb_phy_port_speed { | |||
| 34 | TEGRA_USB_PHY_PORT_SPEED_HIGH, | 34 | TEGRA_USB_PHY_PORT_SPEED_HIGH, |
| 35 | }; | 35 | }; |
| 36 | 36 | ||
| 37 | enum tegra_usb_phy_mode { | ||
| 38 | TEGRA_USB_PHY_MODE_DEVICE, | ||
| 39 | TEGRA_USB_PHY_MODE_HOST, | ||
| 40 | TEGRA_USB_PHY_MODE_OTG, | ||
| 41 | }; | ||
| 42 | |||
| 43 | struct tegra_xtal_freq; | 37 | struct tegra_xtal_freq; |
| 44 | 38 | ||
| 45 | struct tegra_usb_phy { | 39 | struct tegra_usb_phy { |
| @@ -51,7 +45,7 @@ struct tegra_usb_phy { | |||
| 51 | struct clk *pll_u; | 45 | struct clk *pll_u; |
| 52 | struct clk *pad_clk; | 46 | struct clk *pad_clk; |
| 53 | struct regulator *vbus; | 47 | struct regulator *vbus; |
| 54 | enum tegra_usb_phy_mode mode; | 48 | enum usb_dr_mode mode; |
| 55 | void *config; | 49 | void *config; |
| 56 | struct usb_phy *ulpi; | 50 | struct usb_phy *ulpi; |
| 57 | struct usb_phy u_phy; | 51 | struct usb_phy u_phy; |
