]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: add USB_OTG_ADP definition
authorMacpaul Lin <macpaul@gmail.com>
Thu, 9 Jul 2015 07:18:39 +0000 (15:18 +0800)
committerFelipe Balbi <balbi@ti.com>
Wed, 29 Jul 2015 14:59:20 +0000 (09:59 -0500)
Add USB_OTG_ADP definition for usb_otg_descriptor.bmAttributes.

Signed-off-by: Macpaul Lin <macpaul@gmail.com>
Signed-off-by: Li Jun <jun.li@freescale.com>
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
include/uapi/linux/usb/ch9.h

index aec689941c18c5cf64a39eba7ca90c2244ef5cb7..f7adc6e01f9ea4544363d6f1bfa446854c813dec 100644 (file)
@@ -688,6 +688,7 @@ struct usb_otg20_descriptor {
 /* from usb_otg_descriptor.bmAttributes */
 #define USB_OTG_SRP            (1 << 0)
 #define USB_OTG_HNP            (1 << 1)        /* swap host/device roles */
+#define USB_OTG_ADP            (1 << 2)        /* support ADP */
 
 /*-------------------------------------------------------------------------*/