diff options
author | Richard Zhao <richard.zhao@freescale.com> | 2012-07-07 10:56:46 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-09 12:59:23 -0400 |
commit | a2c3d6902f6f9916b5376c44baa8c1d08bf92a27 (patch) | |
tree | 5148bf5983295422ff66b67a1df66a51b627c790 /include/linux/usb | |
parent | 526c51382d59144a3704970ab111d668e604a10f (diff) |
usb: chipidea: permit driver bindings pass phy pointer
Sometimes, the driver bindings may know what phy they use.
For example, when using device tree, the usb controller may have a
phandler pointing to usb phy.
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Felipe Balbi <balbi@ti.com>
Tested-by: Subodh Nijsure <snijsure@grid-net.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/chipidea.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index be078f0bfde2..544825dde823 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h | |||
@@ -5,12 +5,15 @@ | |||
5 | #ifndef __LINUX_USB_CHIPIDEA_H | 5 | #ifndef __LINUX_USB_CHIPIDEA_H |
6 | #define __LINUX_USB_CHIPIDEA_H | 6 | #define __LINUX_USB_CHIPIDEA_H |
7 | 7 | ||
8 | #include <linux/usb/otg.h> | ||
9 | |||
8 | struct ci13xxx; | 10 | struct ci13xxx; |
9 | struct ci13xxx_platform_data { | 11 | struct ci13xxx_platform_data { |
10 | const char *name; | 12 | const char *name; |
11 | /* offset of the capability registers */ | 13 | /* offset of the capability registers */ |
12 | uintptr_t capoffset; | 14 | uintptr_t capoffset; |
13 | unsigned power_budget; | 15 | unsigned power_budget; |
16 | struct usb_phy *phy; | ||
14 | unsigned long flags; | 17 | unsigned long flags; |
15 | #define CI13XXX_REGS_SHARED BIT(0) | 18 | #define CI13XXX_REGS_SHARED BIT(0) |
16 | #define CI13XXX_REQUIRE_TRANSCEIVER BIT(1) | 19 | #define CI13XXX_REQUIRE_TRANSCEIVER BIT(1) |