summaryrefslogtreecommitdiff
path: root/include/usb_descriptor.h
diff options
context:
space:
mode:
authorNick Sanders <nsanders@chromium.org>2016-09-14 19:09:25 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-11 17:20:19 -0800
commitbb3ab2fbc4a9d4e9ee1fe7d833e03fe19b6bff05 (patch)
treebe1e8fa4b0b52a3ff85d7739b45b2d118c543857 /include/usb_descriptor.h
parentd7222a4956de9412fcca8a0d34c206e5dbd79abb (diff)
downloadchrome-ec-bb3ab2fbc4a9d4e9ee1fe7d833e03fe19b6bff05.tar.gz
sweetberry: add usb power logging interface
This allows logging of power data over sweetberry BUG=chromium:608039 TEST=log power data BRANCH=None Change-Id: I6f642384cbf223959294c7bd99bca0f9206775b8 Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/385540 Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'include/usb_descriptor.h')
-rw-r--r--include/usb_descriptor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb_descriptor.h b/include/usb_descriptor.h
index 1920db7938..7cb64e35aa 100644
--- a/include/usb_descriptor.h
+++ b/include/usb_descriptor.h
@@ -190,6 +190,9 @@ struct usb_endpoint_descriptor {
/* We can use any protocol we want */
#define USB_PROTOCOL_GOOGLE_CR50_NON_HC_FW_UPDATE 0xff
+#define USB_SUBCLASS_GOOGLE_POWER 0x54
+#define USB_PROTOCOL_GOOGLE_POWER 0x01
+
/* Control requests */
/* bRequestType fields */