mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
9fdb07f720
commit
6558d7edbe
2 changed files with 13 additions and 19 deletions
|
@ -34,12 +34,6 @@ enum tegra_usb_phy_port_speed {
|
|||
TEGRA_USB_PHY_PORT_SPEED_HIGH,
|
||||
};
|
||||
|
||||
enum tegra_usb_phy_mode {
|
||||
TEGRA_USB_PHY_MODE_DEVICE,
|
||||
TEGRA_USB_PHY_MODE_HOST,
|
||||
TEGRA_USB_PHY_MODE_OTG,
|
||||
};
|
||||
|
||||
struct tegra_xtal_freq;
|
||||
|
||||
struct tegra_usb_phy {
|
||||
|
@ -51,7 +45,7 @@ struct tegra_usb_phy {
|
|||
struct clk *pll_u;
|
||||
struct clk *pad_clk;
|
||||
struct regulator *vbus;
|
||||
enum tegra_usb_phy_mode mode;
|
||||
enum usb_dr_mode mode;
|
||||
void *config;
|
||||
struct usb_phy *ulpi;
|
||||
struct usb_phy u_phy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue