summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2014-12-02 10:44:22 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-23 19:23:32 +0000
commit4002d66297f381c18e1118fa8e2cc156bc5baffd (patch)
tree1485974c5962699287b04163c93acda25a72c317 /chip
parent2c3cf4d1a9d6ed732985ea495e8ebfe1d09a916b (diff)
downloadchrome-ec-4002d66297f381c18e1118fa8e2cc156bc5baffd.tar.gz
USB-SPI: Set the interface SubClass to Google SPI
This SubClass will provide a simple mechanism for host tools to discover SPI bridge enabled devices. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I0c800ca7b1a2ac58584eab8ba201a6b2a5a894ea Reviewed-on: https://chromium-review.googlesource.com/260963 Trybot-Ready: Anton Staaf <robotboy@chromium.org> Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/usb_spi.h4
1 files changed, 2 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 \