]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Allow reporting the internal state
authorSimon Glass <sjg@chromium.org>
Wed, 31 Aug 2022 03:05:36 +0000 (21:05 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 3 Sep 2022 13:59:05 +0000 (16:59 +0300)
commit3bb4db4c3883c66ee0bbf152e9ba1d2504fa8c9f
treeb94da976937e8039287e79b395ca9068f9f9e34f
parent6694c997b210656fc3e6ce63ba780bc9bf97c077
tpm: Allow reporting the internal state

It is useful to read information about the current TPM state, where
supported, e.g. for debugging purposes when verified boot fails.

Add support for this to the TPM interface as well as Cr50. Add a simple
sandbox test.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/tpm-common.c
cmd/tpm-user-utils.h
cmd/tpm-v2.c
drivers/tpm/tpm-uclass.c
drivers/tpm/tpm2_tis_sandbox.c
include/tpm-common.h
test/dm/Makefile
test/dm/tpm.c [new file with mode: 0644]