phy: omap-usb2: Provide workaround for USB2PHY false disconnect
Enable the dra7x errata workaround for false disconnect problem with USB2PHY. False disconnects were detected with some of the devices. Reduce the sensitivity of the disconnect logic within the USB2PHY subsystem to enusre these false disconnects are not registered. [george.cherian@ti.com] While at that, pass proper flags for each SoC's. This is a common driver used across OMAP4,OMAP5,DRA7xx and AM437x USB2PHY. False disconnect workaround is currently applicable for only DRA7x. Signed-off-by: Austin Beam <austinbeam@ti.com> 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
09a0168de1
commit
7e472402ca
2 changed files with 48 additions and 0 deletions
|
@ -33,10 +33,13 @@ struct usb_dpll_params {
|
|||
struct omap_usb {
|
||||
struct usb_phy phy;
|
||||
struct phy_companion *comparator;
|
||||
void __iomem *pll_ctrl_base;
|
||||
void __iomem *phy_base;
|
||||
struct device *dev;
|
||||
struct device *control_dev;
|
||||
struct clk *wkupclk;
|
||||
struct clk *optclk;
|
||||
u8 flags;
|
||||
};
|
||||
|
||||
struct usb_phy_data {
|
||||
|
@ -47,6 +50,7 @@ struct usb_phy_data {
|
|||
/* Driver Flags */
|
||||
#define OMAP_USB2_HAS_START_SRP (1 << 0)
|
||||
#define OMAP_USB2_HAS_SET_VBUS (1 << 1)
|
||||
#define OMAP_USB2_CALIBRATE_FALSE_DISCONNECT (1 << 2)
|
||||
|
||||
#define phy_to_omapusb(x) container_of((x), struct omap_usb, phy)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue