summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-07-19 13:38:06 +0300
committerFelipe Balbi <balbi@ti.com>2012-08-03 09:36:19 +0300
commitc84d364f8178d2bc12827836bf58eb45598262a4 (patch)
treebc12127c693bc537ea280a9bb84c38b4a01b74c4 /include/linux/usb
parent78c289f8769aaefcc52d26ca53c8b2ee545fb332 (diff)
downloadtalos-obmc-linux-c84d364f8178d2bc12827836bf58eb45598262a4.tar.gz
talos-obmc-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/linux/usb')
-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);
OpenPOWER on IntegriCloud