summaryrefslogtreecommitdiff
path: root/src/drivers/pc80/tpm
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2016-11-11 09:28:45 +0530
committerMartin Roth <martinroth@google.com>2016-11-14 17:18:21 +0100
commit5b8c4a7bca87d8f015f9b500652a967e8257b19c (patch)
tree8cc2b0acdaf1f3692ccc6c9761623f3627695c21 /src/drivers/pc80/tpm
parentb5580ad55f02980b24330276524b58b3afebb7e7 (diff)
downloadcoreboot-5b8c4a7bca87d8f015f9b500652a967e8257b19c.tar.xz
drivers/pc80/tpm: Select TPM device name based on Kconfig option
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: I57e63f2f2899d25ed6b797930fd8bf1d1cdc1b1d Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/17374 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/pc80/tpm')
-rw-r--r--src/drivers/pc80/tpm/tpm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/pc80/tpm/tpm.c b/src/drivers/pc80/tpm/tpm.c
index fa46b476f5..fbfb816cdb 100644
--- a/src/drivers/pc80/tpm/tpm.c
+++ b/src/drivers/pc80/tpm/tpm.c
@@ -119,7 +119,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)
+ {0x001b, "SLB9670 TT 2.0"},
+#else
{0x001b, "SLB9670 TT 1.2"},
+#endif
{0xffff}
};