mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
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>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
2c3cf4d1a9
commit
4002d66297
@@ -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 \
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user