tpm2: add tlcl_force_clear and use it before factory init

Hardware / Coreboot - Vadim Bendebury [chromium.org] - 13 July 2016 16:59 UTC

tlcl_force_clear() needs to be issued each time when the device mode switches between normal/development/recovery.

This patch adds command implementation using TPM_Clear TPM2 command, and also invokes it before factory initialization.

BRANCH=none BUG=chrome-os-partner:50645 TEST=verified that TPM_Clear command succeeds at factory startup and the boot proceeds normally.

Change-Id: Ia431390870cbe448bc1b6f1755ed17953be9bdf1

adfbbde tpm2: add tlcl_force_clear and use it before factory init
src/lib/tpm2_tlcl.c | 10 +++++++++-
.../google/chromeos/vboot2/antirollback.c | 1 +
2 files changed, 10 insertions(+), 1 deletion(-)

Upstream: review.coreboot.org


  • Share