Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Antoine Tenart and committed by
Felipe Balbi
48bcc180 19c1eac2

+3
+3
include/linux/usb/otg.h
··· 9 9 #ifndef __LINUX_USB_OTG_H 10 10 #define __LINUX_USB_OTG_H 11 11 12 + #include <linux/phy/phy.h> 12 13 #include <linux/usb/phy.h> 13 14 14 15 struct usb_otg { 15 16 u8 default_a; 16 17 18 + struct phy *phy; 19 + /* old usb_phy interface */ 17 20 struct usb_phy *usb_phy; 18 21 struct usb_bus *host; 19 22 struct usb_gadget *gadget;