usb: phy: Add PHY msm usb driver
This change adds PHY msm usb driver which handles PHY
initialization, clock management, and workarounds
required after resetting the hardware and power management.
This change also preserves the structure and API design
changes present on 4.9 kernel along with fixing the
coding style errors.
Change-Id: I6e796bb95a61287bd4547fac8421c53de7a45d67
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
diff --git a/include/linux/usb/phy.h b/include/linux/usb/phy.h
index 64aa52e..d999b3c 100644
--- a/include/linux/usb/phy.h
+++ b/include/linux/usb/phy.h
@@ -58,6 +58,7 @@ enum usb_otg_state {
OTG_STATE_B_SRP_INIT,
OTG_STATE_B_PERIPHERAL,
OTG_STATE_B_SUSPEND,
+ OTG_STATE_B_CHARGER,
/* extra dual-role default-b states */
OTG_STATE_B_WAIT_ACON,
@@ -141,6 +142,10 @@ struct usb_phy {
/* reset the PHY clocks */
int (*reset)(struct usb_phy *x);
+
+ /* for notification of usb_phy_dbg_events */
+ void (*dbg_event)(struct usb_phy *x,
+ char *event, int msg1, int msg2);
int (*disable_chirp)(struct usb_phy *x, bool disable);
};