From 1b39f176a9bbce85791440745dcbdad629b79373 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 5 Jan 2017 17:59:38 -0800 Subject: 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 Reviewed-on: https://review.coreboot.org/18800 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/drivers/i2c/tpm/Makefile.inc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/drivers/i2c/tpm/Makefile.inc') diff --git a/src/drivers/i2c/tpm/Makefile.inc b/src/drivers/i2c/tpm/Makefile.inc index 7fcfc78d56..afcb33bb93 100644 --- a/src/drivers/i2c/tpm/Makefile.inc +++ b/src/drivers/i2c/tpm/Makefile.inc @@ -1,8 +1,13 @@ -ramstage-$(CONFIG_I2C_TPM) += tis.c -romstage-$(CONFIG_I2C_TPM) += tis.c -verstage-$(CONFIG_I2C_TPM) += tis.c -bootblock-$(CONFIG_I2C_TPM) += tis.c +ramstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c +romstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c +verstage-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c +bootblock-$(CONFIG_DRIVER_TIS_DEFAULT) += tis.c + +ramstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c +romstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c +verstage-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c +bootblock-$(CONFIG_MAINBOARD_HAS_I2C_TPM_ATMEL) += tis_atmel.c ramstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c romstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c -- cgit v1.2.3