tpm: Allow committing non-volatile data
authorSimon Glass <sjg@chromium.org>
Wed, 31 Aug 2022 03:05:38 +0000 (21:05 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Sat, 3 Sep 2022 13:59:05 +0000 (16:59 +0300)
commit5208ed187cb6314dc64657802e8e5bb5a5e3a7fb
tree6954b55d47f5b86d6cc4d3d6ac9bfc7d79187523
parent4c57ec76b7254cf1743748b70239bddf6100237a
tpm: Allow committing non-volatile data

Add an option to tell the TPM to commit non-volatile data immediately it
is changed, rather than waiting until later. This is needed in some
situations, since if the device reboots it may not write the data.

Add definitions for the rest of the Cr50 commands while we are here.

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