From: Miquel Raynal Date: Tue, 15 May 2018 09:57:04 +0000 (+0200) Subject: tpm: add Revision ID field in the chip structure X-Git-Tag: v2018.07-rc1~85 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=06425aa087b7dae17028544a0161ecc2ba6059c8;p=oweals%2Fu-boot.git tpm: add Revision ID field in the chip structure TPM are shipped with a few read-only register from which we can retrieve for instance: - vendor ID - product ID - revision ID Product and vendor ID share the same register and are already referenced in the tpm_chip structure. Add the revision ID entry which is missing. Signed-off-by: Miquel Raynal Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/drivers/tpm/tpm_tis.h b/drivers/tpm/tpm_tis.h index a899bc0b46..947585f8e3 100644 --- a/drivers/tpm/tpm_tis.h +++ b/drivers/tpm/tpm_tis.h @@ -40,6 +40,7 @@ struct tpm_chip { int is_open; int locality; u32 vend_dev; + u8 rid; unsigned long timeout_a, timeout_b, timeout_c, timeout_d; /* msec */ ulong chip_type; };