summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelipe Balbi2012-07-19 12:38:06 +0200
committerFelipe Balbi2012-08-03 08:36:19 +0200
commitc84d364f8178d2bc12827836bf58eb45598262a4 (patch)
treebc12127c693bc537ea280a9bb84c38b4a01b74c4 /include
parentusb: xceiv: create nop-usb-xceiv.h and avoid pollution on otg.h (diff)
downloadkernel-qcow2-linux-c84d364f8178d2bc12827836bf58eb45598262a4.tar.gz
kernel-qcow2-linux-c84d364f8178d2bc12827836bf58eb45598262a4.tar.xz
kernel-qcow2-linux-c84d364f8178d2bc12827836bf58eb45598262a4.zip
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')
-rw-r--r--include/linux/usb/nop-usb-xceiv.h6
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 ecc7562a38cc..28884c717411 100644
--- a/include/linux/usb/nop-usb-xceiv.h
+++ b/include/linux/usb/nop-usb-xceiv.h
@@ -1,6 +1,12 @@
#ifndef __LINUX_USB_NOP_XCEIV_H
#define __LINUX_USB_NOP_XCEIV_H
+#include <linux/usb/otg.h>
+
+struct nop_usb_xceiv_platform_data {
+ enum usb_phy_type type;
+};
+
#if defined(CONFIG_NOP_USB_XCEIV) || (defined(CONFIG_NOP_USB_XCEIV_MODULE) && defined(MODULE))
/* sometimes transceivers are accessed only through e.g. ULPI */
extern void usb_nop_xceiv_register(void);