summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/tpm/Kconfig
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-01-05 17:59:38 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-16 00:04:46 +0100
commit1b39f176a9bbce85791440745dcbdad629b79373 (patch)
tree4ba5e975e89a948319715c733fe064dadfa30641 /src/drivers/i2c/tpm/Kconfig
parente0668e4e1f3b2f47e474f870bb5d72a488e43504 (diff)
downloadcoreboot-1b39f176a9bbce85791440745dcbdad629b79373.tar.xz
drivers/i2c/tpm: Add support for Atmel TPM (AT97SC3204)
The I2C interface for the Atmel AT97SC3204 TPM varies greatly from the existing I2C TPM support. The Atmel part just passes the commands and responses from the TIS layer across the I2C interface. TEST=Build and run on Galileo Gen2 with Crypto Shield and vboot enabled Change-Id: Ib2ef0ffdfc12b2fc11fe4c55b6414924d4b676dd Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/18800 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/i2c/tpm/Kconfig')
-rw-r--r--src/drivers/i2c/tpm/Kconfig16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/drivers/i2c/tpm/Kconfig b/src/drivers/i2c/tpm/Kconfig
index d35eb754b4..32e5fb4700 100644
--- a/src/drivers/i2c/tpm/Kconfig
+++ b/src/drivers/i2c/tpm/Kconfig
@@ -2,24 +2,38 @@ config I2C_TPM
bool "I2C TPM"
depends on TPM || TPM2
+config MAINBOARD_HAS_I2C_TPM_ATMEL
+ bool
+ default n
+
config MAINBOARD_HAS_I2C_TPM_CR50
bool
default n
choice
prompt "I2C TPM Driver"
+ default I2C_TPM_ATMEL if MAINBOARD_HAS_I2C_TPM_ATMEL
default I2C_TPM_CR50 if MAINBOARD_HAS_I2C_TPM_CR50
- default I2C_TPM_GENERIC if !MAINBOARD_HAS_I2C_TPM_CR50
+ default I2C_TPM_GENERIC if !MAINBOARD_HAS_I2C_TPM_CR50 && !MAINBOARD_HAS_I2C_TPM_ATMEL
depends on I2C_TPM
config I2C_TPM_GENERIC
bool "Generic I2C TPM Driver"
+config I2C_TPM_ATMEL
+ bool "ATMEL I2C TPM Driver"
+
config I2C_TPM_CR50
bool "CR50 I2C TPM Driver"
endchoice
+config DRIVER_TIS_DEFAULT
+ bool
+ depends on I2C_TPM
+ default n if MAINBOARD_HAS_I2C_TPM_ATMEL
+ default y
+
config DRIVER_TPM_I2C_BUS
hex "I2C TPM chip bus"
default 0x9 # FIXME, workaround for Kconfig BS