summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2016-11-11 04:22:49 (GMT)
committerchrome-bot <chrome-bot@chromium.org>2016-11-11 20:11:19 (GMT)
commitd2902c92247bd08be26f8de3d9a84bfd00ce2116 (patch)
treeb7b425ad5f1ee055374df9246ee71475a0b8723d
parent90e56ea1b876e6e9568bb337062f0b3ba102b8d4 (diff)
downloaddepthcharge-stabilize-8992.B.tar.gz
depthcharge-stabilize-8992.B.tar.xz
drivers/tpm: Select TPM device name based on Kconfig optionstabilize-8992.B
Device ID remains same for SLB9670 infineon TPM 1.1 and TPM 2.0 chip. Hence select based on TPM2 Kconfig option. BUG=none BRANCH=none TEST=Build and boot SKL RVP with SPI TPM 2.0 module Change-Id: I753b3ca737b67c3d2a18f4894230a62d2fb5034d Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://chromium-review.googlesource.com/410482 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--src/drivers/tpm/lpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/tpm/lpc.c b/src/drivers/tpm/lpc.c
index f196a6d..2f7c5ca 100644
--- a/src/drivers/tpm/lpc.c
+++ b/src/drivers/tpm/lpc.c
@@ -99,7 +99,11 @@ static const struct device_name atmel_devices[] = {
static const struct device_name infineon_devices[] = {
{0x000b, "SLB9635 TT 1.2"},
{0x001a, "SLB9660 TT 1.2"},
+#if IS_ENABLED(CONFIG_TPM2_MODE)
+ {0x001b, "SLB9670 TT 2.0"},
+#else
{0x001b, "SLB9670 TT 1.2"},
+#endif
{0xffff}
};