diff options
author | Mary Ruthven <mruthven@chromium.org> | 2019-03-05 19:30:27 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-04-05 13:43:57 -0700 |
commit | 678bb4526ef19ef9458910d0231722b0de4c5ddf (patch) | |
tree | dccb5dc0d61a8a9737a7e18853966acdf99d1668 /common/ccd_config.c | |
parent | 45f07e203612b2551d1b32df394bed78ad3a2ff5 (diff) | |
download | chrome-ec-678bb4526ef19ef9458910d0231722b0de4c5ddf.tar.gz |
cr50: use board_wipe_tpm to clear the tpm
We were clearing the tpm in two different ways. There was one
implementation in factory_mode.c and one in wp.c. This change merges the
two, so there's only one board_wipe_tpm.
While modifying the wipe tpm code from factory_mode.c I noticed the
factory_enable_failed stuff is maybe a bit more complicated than
necessary. I opened a bug for cleaning that up(b/129956462). It wont be
addressed in this change.
BUG=none
BRANCH=none
TEST=Run the processes that wipe the tpm
open ccd.
enable factory mode from vendor command.
run rma open process
Change-Id: Ia76df19f7d9e4f308f3f1a7175f130f1ef7249a2
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1535156
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'common/ccd_config.c')
-rw-r--r-- | common/ccd_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/ccd_config.c b/common/ccd_config.c index 62f97892f4..5b5eb87876 100644 --- a/common/ccd_config.c +++ b/common/ccd_config.c @@ -569,7 +569,7 @@ static void ccd_open_done(int sync) if (sync) rv = tpm_sync_reset(1); else - rv = board_wipe_tpm(); + rv = board_wipe_tpm(1); if (rv != EC_SUCCESS) { CPRINTS("CCD open TPM wipe failed"); |