tpm: Implement state command for Cr50
authorSimon Glass <sjg@chromium.org>
Wed, 31 Aug 2022 03:05:37 +0000 (21:05 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 3 Sep 2022 13:59:05 +0000 (16:59 +0300)
commit4c57ec76b7254cf1743748b70239bddf6100237a
treed4df65873b337c030d24b8478d21b469cfca596d
parent3bb4db4c3883c66ee0bbf152e9ba1d2504fa8c9f
tpm: Implement state command for Cr50

Add a vendor-specific TPM2 command for this and implement it for Cr50.
Note: This is not part of the TPM spec, but is a Cr50 extension.

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>
drivers/tpm/cr50_i2c.c
include/tpm-v2.h
lib/tpm-v2.c