]> git.sur5r.net Git - u-boot/blobdiff - include/tpm-common.h
Merge branch 'master' of git://git.denx.de/u-boot-spi
[u-boot] / include / tpm-common.h
index e0ba696f1c9505fdff47e87dee5ffd75e492ea5b..734c2c9d5398acf75939dfefc5f9ec5e7c42b87d 100644 (file)
@@ -35,11 +35,17 @@ enum tpm_duration {
  *
  * @duration_ms:       Length of each duration type in milliseconds
  * @retry_time_ms:     Time to wait before retrying receive
+ * @pcr_count:         Number of PCR per bank
+ * @pcr_select_min:    Minimum size in bytes of the pcrSelect array
  * @buf:               Buffer used during the exchanges with the chip
  */
 struct tpm_chip_priv {
        uint duration_ms[TPM_DURATION_COUNT];
        uint retry_time_ms;
+#if defined(CONFIG_TPM_V2)
+       uint pcr_count;
+       uint pcr_select_min;
+#endif
        u8 buf[TPM_DEV_BUFSIZE + sizeof(u8)];  /* Max buffer size + addr */
 };