summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chip/stm32/usb_spi.h4
-rw-r--r--include/usb.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/chip/stm32/usb_spi.h b/chip/stm32/usb_spi.h
index 5da35c91f6..316c827420 100644
--- a/chip/stm32/usb_spi.h
+++ b/chip/stm32/usb_spi.h
@@ -148,8 +148,8 @@ struct usb_spi_config {
.bAlternateSetting = 0, \
.bNumEndpoints = 2, \
.bInterfaceClass = USB_CLASS_VENDOR_SPEC, \
- .bInterfaceSubClass = 0, \
- .bInterfaceProtocol = 0, \
+ .bInterfaceSubClass = USB_SUBCLASS_GOOGLE_SPI, \
+ .bInterfaceProtocol = USB_PROTOCOL_GOOGLE_SPI, \
.iInterface = 0, \
}; \
const struct usb_endpoint_descriptor \
diff --git a/include/usb.h b/include/usb.h
index 43eb409c1a..0f33d81a4b 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -160,6 +160,9 @@ struct usb_endpoint_descriptor {
#define USB_SUBCLASS_GOOGLE_SERIAL 0x50
#define USB_PROTOCOL_GOOGLE_SERIAL 0x01
+#define USB_SUBCLASS_GOOGLE_SPI 0x51
+#define USB_PROTOCOL_GOOGLE_SPI 0x01
+
/* Control requests */
/* bRequestType fields */