diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-06-05 17:22:05 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-06 17:09:27 -0700 |
commit | af92414985cb353f57f6a352d790512a6d62c9ec (patch) | |
tree | cbe97c839e9588b1582b94e6d2c48a87ba24c3a1 | |
parent | b06942187e7025d1334bcd8d0ffa95b225c19179 (diff) | |
download | chrome-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>
-rw-r--r-- | common/extension.c | 5 |
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 |