tpm: add Revision ID field in the chip structure
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 15 May 2018 09:57:04 +0000 (11:57 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 25 May 2018 12:12:40 +0000 (08:12 -0400)
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 <miquel.raynal@bootlin.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/tpm/tpm_tis.h

index a899bc0b46a1f7180e8dfce3891d35138d95ec1c..947585f8e339abdf8dddffed00125b2032cb2034 100644 (file)
@@ -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;
 };