diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2018-01-05 16:16:07 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-10 15:44:29 -0800 |
commit | 877e5909b403cd40b415757b2921594bb6d8a021 (patch) | |
tree | d651caeee9b765a6e35bf29812f65a1fa6f9abd2 /include/ccd_config.h | |
parent | 4cb76d6c526da009808579b05f8cb7c409ce2ead (diff) | |
download | chrome-ec-877e5909b403cd40b415757b2921594bb6d8a021.tar.gz |
ccd: prepare for handling crucial CCD commands through TPM task context
We want CCD commands lock, open, password, and unlock (at least to
start with) to be available over both CLI and through crosh (i.e.
coming over /dev/tpm0).
Let's allocate a TPM vendor command for handling all CCD subcommands,
and move to this new framework the 'ccd password' command, which
already is available over vendor command.
BRANCH=cr50
BUG=b:62537474
TEST=verified that 'ccd password' still works both over Suzy-Q CLI and
using gsctool on the target.
Change-Id: I2d06230b762f47af7e580b188a587bc5678ca169
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/853280
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/ccd_config.h')
-rw-r--r-- | include/ccd_config.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ccd_config.h b/include/ccd_config.h index 5319f9a045..5a1cb5add9 100644 --- a/include/ccd_config.h +++ b/include/ccd_config.h @@ -98,6 +98,17 @@ enum ccd_capability { CCD_CAP_COUNT }; +/* + * Subcommand code, used to pass different CCD commands using the same TPM + * vendor command. + */ +enum ccd_vendor_subcommands { + CCDV_PASSWORD = 0, + CCDV_OPEN = 1, + CCDV_UNLOCK = 2, + CCDV_LOCK = 3, +}; + /** * Initialize CCD configuration at boot. * |