From 5aa64b97db0577f4ba2e83b36fc41d33453cfb3d Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Fri, 9 Jun 2017 13:05:29 -0700 Subject: google/fizz: Enable cr50 over SPI By default disabled. Will need to add FIZZ_USE_SPI_TPM config to enable. BUG=b:62456589, b:35775024 BRANCH=None TEST=Reboot and ensure that TPM works in verstage CQ-DEPEND=CL:530184 Change-Id: I14ce73a1c3745c996b79c4d4758ca744e63a46b4 Signed-off-by: Shelley Chen Reviewed-on: https://review.coreboot.org/20134 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/mainboard/google/fizz/mainboard.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/google/fizz/mainboard.c') diff --git a/src/mainboard/google/fizz/mainboard.c b/src/mainboard/google/fizz/mainboard.c index 5346276d35..1f6dc87c65 100644 --- a/src/mainboard/google/fizz/mainboard.c +++ b/src/mainboard/google/fizz/mainboard.c @@ -33,6 +33,12 @@ static void mainboard_enable(device_t dev) dev->ops->acpi_inject_dsdt_generator = chromeos_dsdt_generator; /* Disable unused interface for TPM. */ + if (!IS_ENABLED(CONFIG_FIZZ_USE_SPI_TPM)) { + tpm = PCH_DEV_GSPI0; + if (tpm) + tpm->enabled = 0; + } + if (!IS_ENABLED(CONFIG_FIZZ_USE_I2C_TPM)) { tpm = PCH_DEV_I2C1; if (tpm) -- cgit v1.2.3