diff options
author | Nick Sanders <nsanders@chromium.org> | 2016-02-24 21:48:10 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-03-15 21:49:35 -0700 |
commit | 750b4525da7c1336968b0d881e18571670ae307c (patch) | |
tree | 19625fa850486a001830a1daba0a279648af5cfc /include/usb_descriptor.h | |
parent | e21f3401e136ba1ed25272356aa5d446d083a5ad (diff) | |
download | chrome-ec-750b4525da7c1336968b0d881e18571670ae307c.tar.gz |
servo_micro: add USB I2C interface
Add a usb endpoint and class for i2c control via USB.
Used for servo micro and servo_v4 to export USB control
through servod.
BUG=chromium:571477
BRANCH=None
TEST=updated servod is able to control gpio extender on servo_micro
Signed-off-by: Nick Sanders <nsanders@google.com>
Change-Id: Id44096f8c9e2da917c0574d28dfcbcc0adf31950
Reviewed-on: https://chromium-review.googlesource.com/329322
Commit-Ready: Nick Sanders <nsanders@chromium.org>
Tested-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/usb_descriptor.h')
-rw-r--r-- | include/usb_descriptor.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usb_descriptor.h b/include/usb_descriptor.h index 327f127585..8fdb7ef774 100644 --- a/include/usb_descriptor.h +++ b/include/usb_descriptor.h @@ -164,6 +164,10 @@ struct usb_endpoint_descriptor { #define USB_SUBCLASS_GOOGLE_SPI 0x51 #define USB_PROTOCOL_GOOGLE_SPI 0x01 +#define USB_SUBCLASS_GOOGLE_I2C 0x52 +#define USB_PROTOCOL_GOOGLE_I2C 0x01 + + /* Control requests */ /* bRequestType fields */ |