summaryrefslogtreecommitdiff
path: root/include/usb_descriptor.h
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2016-07-19 15:13:50 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-21 13:13:35 -0700
commit14dbcb829e2c676cb2325445f7e3b9f352833050 (patch)
tree0e6a1aa974b7f9a3a9286a3339fd9a8b8f9656d0 /include/usb_descriptor.h
parent63bd3feaabb95562c1051a718ac88305126c3ead (diff)
downloadchrome-ec-14dbcb829e2c676cb2325445f7e3b9f352833050.tar.gz
servo_v4: copypasta usb updater code into common
This copies the generic USB update code into common so it can be used on other platforms. There should be no functional change. cr50 folks want no change to their code so vbendeb@chomium.org will refactor this back together at a later date. BUG=chromium:571476 TEST=none BRANCH=none Change-Id: I710afb22940013e7db5d8694898b90c0ae245777 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/362131 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
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 a29b9eda76..22f2c08257 100644
--- a/include/usb_descriptor.h
+++ b/include/usb_descriptor.h
@@ -167,11 +167,15 @@ struct usb_endpoint_descriptor {
#define USB_SUBCLASS_GOOGLE_I2C 0x52
#define USB_PROTOCOL_GOOGLE_I2C 0x01
+#define USB_SUBCLASS_GOOGLE_UPDATE 0x53
+#define USB_PROTOCOL_GOOGLE_UPDATE 0xff
+
+/* Double define for cr50 code freeze.
+ * TODO(vbendeb): dedup this. */
#define USB_SUBCLASS_GOOGLE_CR50 0x53
/* We can use any protocol we want */
#define USB_PROTOCOL_GOOGLE_CR50_NON_HC_FW_UPDATE 0xff
-
/* Control requests */
/* bRequestType fields */