summaryrefslogtreecommitdiff
path: root/include/usb_descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/usb_descriptor.h')
-rw-r--r--include/usb_descriptor.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/usb_descriptor.h b/include/usb_descriptor.h
index 4b7184a311..153c648085 100644
--- a/include/usb_descriptor.h
+++ b/include/usb_descriptor.h
@@ -191,7 +191,11 @@ struct usb_endpoint_descriptor {
#define USB_PROTOCOL_GOOGLE_SERIAL 0x01
#define USB_SUBCLASS_GOOGLE_SPI 0x51
-#define USB_PROTOCOL_GOOGLE_SPI 0x01
+#ifdef CONFIG_USB_SPI_V2
+#define USB_PROTOCOL_GOOGLE_SPI 0x02
+#else
+#define USB_PROTOCOL_GOOGLE_SPI 0x01
+#endif
#define USB_SUBCLASS_GOOGLE_I2C 0x52
#define USB_PROTOCOL_GOOGLE_I2C 0x01