mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
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>
This commit is contained in:
parent
64bf2b2369
commit
09a0168de1
2 changed files with 46 additions and 12 deletions
|
@ -39,6 +39,15 @@ struct omap_usb {
|
|||
struct clk *optclk;
|
||||
};
|
||||
|
||||
struct usb_phy_data {
|
||||
const char *label;
|
||||
u8 flags;
|
||||
};
|
||||
|
||||
/* Driver Flags */
|
||||
#define OMAP_USB2_HAS_START_SRP (1 << 0)
|
||||
#define OMAP_USB2_HAS_SET_VBUS (1 << 1)
|
||||
|
||||
#define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
|
||||
|
||||
#if defined(CONFIG_OMAP_USB2) || defined(CONFIG_OMAP_USB2_MODULE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue