diff options
author | Keith Short <keithshort@chromium.org> | 2019-01-04 11:19:51 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-17 20:20:48 -0800 |
commit | 948c320a35f3f5a1942bd33a93a3f4233ef19008 (patch) | |
tree | 05f52eb7eab7219db9a4711f18a02ee934da0332 /board/cr50/tpm2/tpm_mode.c | |
parent | 81f1c81cf9521425b0d57cd94774d80ec4db0ef0 (diff) | |
download | chrome-ec-948c320a35f3f5a1942bd33a93a3f4233ef19008.tar.gz |
cr50: Support closed source customer diagnostic mode
Drives OEM specific GPIOS to enable diagnostic mode on a closed source
EC.
BUG=b:122312536
BRANCH=cr50
TEST=make buildall. Verified GPIO states with scope at boot and after
sending TPM disable command from the AP. Diagnostic mode is cleared on
reboot.
Change-Id: Id7c9d7e5cc63e5e6f56451ceaca04eeddb254f7d
Signed-off-by: Keith Short <keithshort@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1394692
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'board/cr50/tpm2/tpm_mode.c')
-rw-r--r-- | board/cr50/tpm2/tpm_mode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/board/cr50/tpm2/tpm_mode.c b/board/cr50/tpm2/tpm_mode.c index 404000d60a..9978f7f724 100644 --- a/board/cr50/tpm2/tpm_mode.c +++ b/board/cr50/tpm2/tpm_mode.c @@ -6,6 +6,8 @@ #include "config.h" #include "Global.h" +#include "board.h" +#include "closed_source_set1.h" #include "console.h" #include "dcrypto.h" #include "extension.h" @@ -24,6 +26,9 @@ static void disable_tpm(void) tpm_stop(); DCRYPTO_ladder_revoke(); nvmem_clear_cache(); + + if (board_uses_closed_source_set1()) + close_source_set1_disable_tpm(); } DECLARE_DEFERRED(disable_tpm); |