diff options
author | Felipe Balbi <balbi@ti.com> | 2012-07-19 06:38:06 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-08-03 02:36:19 -0400 |
commit | c84d364f8178d2bc12827836bf58eb45598262a4 (patch) | |
tree | bc12127c693bc537ea280a9bb84c38b4a01b74c4 /include/linux/usb | |
parent | 78c289f8769aaefcc52d26ca53c8b2ee545fb332 (diff) |
usb: xceiv: nop: let it work as USB2 and USB3 phy
We add a platform_data to pass the desired mode
for the nop-xceiv so it can work on USB2 and USB3
modes.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/nop-usb-xceiv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb/nop-usb-xceiv.h b/include/linux/usb/nop-usb-xceiv.h index ecc7562a38c..28884c71741 100644 --- a/include/linux/usb/nop-usb-xceiv.h +++ b/include/linux/usb/nop-usb-xceiv.h | |||
@@ -1,6 +1,12 @@ | |||
1 | #ifndef __LINUX_USB_NOP_XCEIV_H | 1 | #ifndef __LINUX_USB_NOP_XCEIV_H |
2 | #define __LINUX_USB_NOP_XCEIV_H | 2 | #define __LINUX_USB_NOP_XCEIV_H |
3 | 3 | ||
4 | #include <linux/usb/otg.h> | ||
5 | |||
6 | struct nop_usb_xceiv_platform_data { | ||
7 | enum usb_phy_type type; | ||
8 | }; | ||
9 | |||
4 | #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) | 10 | #if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE)) |
5 | /* sometimes transceivers are accessed only through e.g. ULPI */ | 11 | /* sometimes transceivers are accessed only through e.g. ULPI */ |
6 | extern void usb_nop_xceiv_register(void); | 12 | extern void usb_nop_xceiv_register(void); |