summaryrefslogtreecommitdiff
path: root/include/tpm-v2.h
diff options
context:
space:
mode:
authorIlias Apalodimas <[email protected]>2024-12-24 08:01:09 -0800
committerIlias Apalodimas <[email protected]>2025-01-07 15:45:51 +0200
commitffdbf775e71b8160a37ca65bfa38ed037807dbf2 (patch)
tree40bd279ee1ab66014d938f6e499ff162125695ac /include/tpm-v2.h
parent8dc886ce314282de9d65fac1e8c68ee40d30f678 (diff)
tpm: Keep the active PCRs in the chip private data
We have a lot of code trying to reason about the active TPM PCRs when creating an EventLog. Since changing the active banks can't be done on the fly and requires a TPM reset, let's store them in the chip private data instead. Upcoming patches will use this during the EventLog creation. Signed-off-by: Raymond Mao <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include/tpm-v2.h')
-rw-r--r--include/tpm-v2.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 6b3f2175b77..6e9bc794f9e 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -34,16 +34,6 @@ struct udevice;
#define TPM2_HDR_LEN 10
-/*
- * We deviate from this draft of the specification by increasing the value of
- * TPM2_NUM_PCR_BANKS from 3 to 16 to ensure compatibility with TPM2
- * implementations that have enabled a larger than typical number of PCR
- * banks. This larger value for TPM2_NUM_PCR_BANKS is expected to be included
- * in a future revision of the specification.
- */
-#define TPM2_NUM_PCR_BANKS 16
-
-/* Definition of (UINT32) TPM2_CAP Constants */
#define TPM2_CAP_PCRS 0x00000005U
#define TPM2_CAP_TPM_PROPERTIES 0x00000006U