Browse Source

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>
Li Jun 9 years ago
parent
commit
346dbc6993
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/uapi/linux/usb/ch9.h

+ 1 - 0
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_HNP		(1 << 1)	/* swap host/device roles */
 #define USB_OTG_ADP		(1 << 2)	/* support ADP */
 #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 */
 /* USB_DT_DEBUG:  for special highspeed devices, replacing serial console */