diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-07-20 10:18:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-07-30 22:41:06 -0700 |
commit | c14114832c002a772e6dd3b27932805e9f361218 (patch) | |
tree | 305d548c4e48843296ba558c760e28ebbc6e6863 /include/tpm_manufacture.h | |
parent | ef213ce62df85749d159547d0282b9519a4e111a (diff) | |
download | chrome-ec-c14114832c002a772e6dd3b27932805e9f361218.tar.gz |
cr50: provide chip factory mode support
When in factory mode, we should not be trying to figure out board
strapping options, just enable SPI interface so that the tester can
communicate with the chip.
Also, to close the loop with the tester, let's add indication of the
cert installation result, by setting the two top bits of the DUMMY
(aka underrun) character to 1 and the lower bits to the endorsement
operation result (0 means success, nonzero values communicate
different failure modes) and by preventing the TPM driver from sending
anything but underrun chars on the SPI interface.
BRANCH=cr50
BUG=b:63686091
TEST=pending
Change-Id: I1a22ed6988ad87dd929a393359c4604e6ecd3b58
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/578651
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Diffstat (limited to 'include/tpm_manufacture.h')
-rw-r--r-- | include/tpm_manufacture.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tpm_manufacture.h b/include/tpm_manufacture.h index f12db82bf9..df43bcc886 100644 --- a/include/tpm_manufacture.h +++ b/include/tpm_manufacture.h @@ -27,6 +27,7 @@ enum manufacturing_status { mnf_rsa_proc = 8, mnf_ecc_proc = 9, mnf_store = 10, + mnf_manufactured = 11, }; enum manufacturing_status tpm_endorse(void); |