summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@free-electrons.com>2014-10-30 20:41:15 +0300
committerFelipe Balbi <balbi@ti.com>2014-11-03 19:01:25 +0300
commit48bcc18076df4e07ef86226ac6ce795f64c84f7f (patch)
tree7c386e20b1b90179ef1688707f6007586c88765c
parent19c1eac2685b62640ca2386a0a885ac2152668c8 (diff)
downloadlinux-48bcc18076df4e07ef86226ac6ce795f64c84f7f.tar.xz
usb: add support to the generic PHY framework in OTG
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>
-rw-r--r--include/linux/usb/otg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/otg.h b/include/linux/usb/otg.h
index 978fbbb0e266..52661c5da690 100644
--- a/include/linux/usb/otg.h
+++ b/include/linux/usb/otg.h
@@ -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;