diff options
author | George Cherian <george.cherian@ti.com> | 2014-03-06 07:41:52 -0500 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2014-03-09 03:15:07 -0400 |
commit | 09a0168de11a4a487c2d1c78366491b695e0c15a (patch) | |
tree | d3d86d247a388268d91eba2d6162f95cb74b461b /include/linux/phy | |
parent | 64bf2b23697bcf9246cea4eea83c613ea791ed8a (diff) |
phy: omap-usb2: Adapt phy-omap-usb2 for AM437x
Adapt phy-omap-usb2 driver for AM437x.
- Add new comaptible "ti,am437x-usb2" for AM437x
- Pass proper data to differentiate AM437x and others.
- AM437x doesnot support set_vbus and start_srp.
Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'include/linux/phy')
-rw-r--r-- | include/linux/phy/omap_usb.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/phy/omap_usb.h b/include/linux/phy/omap_usb.h index 19d343c37fb5..35989a8fc535 100644 --- a/include/linux/phy/omap_usb.h +++ b/include/linux/phy/omap_usb.h | |||
@@ -39,6 +39,15 @@ struct omap_usb { | |||
39 | struct clk *optclk; | 39 | struct clk *optclk; |
40 | }; | 40 | }; |
41 | 41 | ||
42 | struct usb_phy_data { | ||
43 | const char *label; | ||
44 | u8 flags; | ||
45 | }; | ||
46 | |||
47 | /* Driver Flags */ | ||
48 | #define OMAP_USB2_HAS_START_SRP (1 << 0) | ||
49 | #define OMAP_USB2_HAS_SET_VBUS (1 << 1) | ||
50 | |||
42 | #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) | 51 | #define phy_to_omapusb(x) container_of((x), struct omap_usb, phy) |
43 | 52 | ||
44 | #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE) | 53 | #if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE) |