aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/spi/tpm/tpm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/spi/tpm/tpm.h')
-rw-r--r--src/drivers/spi/tpm/tpm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/spi/tpm/tpm.h b/src/drivers/spi/tpm/tpm.h
index b3e3f45ee9..39d54e74b3 100644
--- a/src/drivers/spi/tpm/tpm.h
+++ b/src/drivers/spi/tpm/tpm.h
@@ -16,6 +16,13 @@ struct tpm2_info {
uint16_t revision;
};
+/* Structure describing the elements of Cr50 firmware version. */
+struct cr50_firmware_version {
+ int epoch;
+ int major;
+ int minor;
+};
+
/*
* Initialize a TPM2 device: read its id, claim locality of zero, verify that
* this indeed is a TPM2 device. Use the passed in handle to access the right
@@ -44,4 +51,7 @@ void tpm2_get_info(struct tpm2_info *info);
/* Indicates whether Cr50 ready pulses are guaranteed to be at least 100us. */
bool cr50_is_long_interrupt_pulse_enabled(void);
+/* Get the cr50 firmware version information. */
+void cr50_get_firmware_version(struct cr50_firmware_version *version);
+
#endif /* ! __COREBOOT_SRC_DRIVERS_SPI_TPM_TPM_H */