usb: add support to the generic PHY framework in OTG
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Thu, 30 Oct 2014 17:41:15 +0000 (18:41 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:25 +0000 (10:01 -0600)
This patch adds support of the PHY framework in OTG and keeps the USB
PHY compatibility. Here the only modification is to add PHY member in
the OTG structure, along with the USB PHY one.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/linux/usb/otg.h

index 978fbbb..52661c5 100644 (file)
@@ -9,11 +9,14 @@
 #ifndef __LINUX_USB_OTG_H
 #define __LINUX_USB_OTG_H
 
+#include <linux/phy/phy.h>
 #include <linux/usb/phy.h>
 
 struct usb_otg {
        u8                      default_a;
 
+       struct phy              *phy;
+       /* old usb_phy interface */
        struct usb_phy          *usb_phy;
        struct usb_bus          *host;
        struct usb_gadget       *gadget;