From 2ea13c8699dc27a7a0ed2874c20508a6a59a201f Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 19 Sep 2016 16:04:39 -0700 Subject: drivers/i2c/tpm: Split cr50 driver from main driver Originally I thought it would be cleaner to keep this code in one place, but as things continue to diverge it ends up being easier to split this into its own driver. This way the different drivers in coreboot, depthcharge, and the kernel, can all be standalone and if one is changed it is easier to modify the others. This change splits out the cr50 driver and brings along the basic elements from the existing driver with no real change in functionality. The following commits will modify the code to make it consistent so it can all be shared with depthcharge and the linux kernel drivers. BUG=chrome-os-partner:53336 Change-Id: I3b62b680773d23cc5a7d2217b9754c6c28bccfa7 Signed-off-by: Duncan Laurie Reviewed-on: https://review.coreboot.org/16663 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/drivers/i2c/tpm/Makefile.inc | 19 +++++++++++++++---- 1 file changed, 15 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 3eb5de0518..7fcfc78d56 100644 --- a/src/drivers/i2c/tpm/Makefile.inc +++ b/src/drivers/i2c/tpm/Makefile.inc @@ -1,6 +1,17 @@ -ramstage-$(CONFIG_I2C_TPM) += tis.c tpm.c -romstage-$(CONFIG_I2C_TPM) += tis.c tpm.c -verstage-$(CONFIG_I2C_TPM) += tis.c tpm.c -bootblock-$(CONFIG_I2C_TPM) += tis.c tpm.c + +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_I2C_TPM_GENERIC) += tpm.c +romstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c +verstage-$(CONFIG_I2C_TPM_GENERIC) += tpm.c +bootblock-$(CONFIG_I2C_TPM_GENERIC) += tpm.c + +ramstage-$(CONFIG_I2C_TPM_CR50) += cr50.c +romstage-$(CONFIG_I2C_TPM_CR50) += cr50.c +verstage-$(CONFIG_I2C_TPM_CR50) += cr50.c +bootblock-$(CONFIG_I2C_TPM_CR50) += cr50.c ramstage-$(CONFIG_DRIVER_I2C_TPM_ACPI) += chip.c -- cgit v1.2.3