diff options
Diffstat (limited to 'include/tpm-common.h')
-rw-r--r-- | include/tpm-common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tpm-common.h b/include/tpm-common.h index 3d88b44..91a1484 100644 --- a/include/tpm-common.h +++ b/include/tpm-common.h @@ -274,4 +274,15 @@ static inline cmd_tbl_t *get_tpm2_commands(unsigned int *size) } #endif +/** + * tpm_get_version() - Find the version of a TPM + * + * This checks the uclass data for a TPM device and returns the version number + * it supports. + * + * @dev: TPM device + * @return version number (TPM_V1 or TPMV2) + */ +enum tpm_version tpm_get_version(struct udevice *dev); + #endif /* __TPM_COMMON_H */ |