summaryrefslogtreecommitdiff
path: root/include/uapi/linux/usb/ch9.h
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2016-02-19 05:04:41 +0300
committerFelipe Balbi <balbi@kernel.org>2016-03-04 16:14:35 +0300
commit346dbc69933086312d9e76bb68ba04e2c82c9b13 (patch)
treef383c217f3faaee60a7128fe1a6c5cc598d9f99d /include/uapi/linux/usb/ch9.h
parent75a9c82ab9638c13ce0964ed8d89d910597f03b4 (diff)
downloadlinux-346dbc69933086312d9e76bb68ba04e2c82c9b13.tar.xz
usb: add OTG status selector definition for HNP polling
A host is required to use the GetStatus command, with wIndex set to the OTG status selector(F000H) to request the Host request flag from the peripheral. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@nxp.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'include/uapi/linux/usb/ch9.h')
-rw-r--r--include/uapi/linux/usb/ch9.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/usb/ch9.h b/include/uapi/linux/usb/ch9.h
index 28bee8d44735..06d6c6228a7a 100644
--- a/include/uapi/linux/usb/ch9.h
+++ b/include/uapi/linux/usb/ch9.h
@@ -708,6 +708,7 @@ struct usb_otg20_descriptor {
#define USB_OTG_HNP (1 << 1) /* swap host/device roles */
#define USB_OTG_ADP (1 << 2) /* support ADP */
+#define OTG_STS_SELECTOR 0xF000 /* OTG status selector */
/*-------------------------------------------------------------------------*/
/* USB_DT_DEBUG: for special highspeed devices, replacing serial console */