summaryrefslogtreecommitdiff
path: root/common/extension.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2017-06-05 17:22:05 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-06 17:09:27 -0700
commitaf92414985cb353f57f6a352d790512a6d62c9ec (patch)
treecbe97c839e9588b1582b94e6d2c48a87ba24c3a1 /common/extension.c
parentb06942187e7025d1334bcd8d0ffa95b225c19179 (diff)
downloadchrome-ec-af92414985cb353f57f6a352d790512a6d62c9ec.tar.gz
cr50: include more vendor commands into the USB set
The upcoming changes in usb_updater will allow to issue vendor commands to set and get board ID value. It is also useful to be able to corrupt the alternative RW header over Suzy-Q when Cr50 is running a debug image. BRANCH=cr50 BUG=b:35587387,b:35587053 TEST=not yet. Change-Id: I54ac6eb4cebd85f97407211c5212b868d61e560f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/524894 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'common/extension.c')
-rw-r--r--common/extension.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/extension.c b/common/extension.c
index 7edbdaf794..0e9ad5bfca 100644
--- a/common/extension.c
+++ b/common/extension.c
@@ -48,9 +48,12 @@ void usb_extension_route_command(uint16_t command_code,
switch (command_code) {
#ifdef CR50_DEV
case VENDOR_CC_IMMEDIATE_RESET:
+ case VENDOR_CC_INVALIDATE_INACTIVE_RW:
+ case VENDOR_CC_SET_BOARD_ID:
#endif /* defined(CR50_DEV) */
- case VENDOR_CC_TURN_UPDATE_ON:
case EXTENSION_POST_RESET: /* Always need to be able to reset. */
+ case VENDOR_CC_GET_BOARD_ID:
+ case VENDOR_CC_TURN_UPDATE_ON:
/*
* The return code normally put into the TPM response header