[coreboot-gerrit] New patch to review for coreboot: drivers/spi/tpm: provide Kconfig to indicate CR50 usage

Aaron Durbin (adurbin@chromium.org) gerrit at coreboot.org
Wed Mar 8 18:36:46 CET 2017


Aaron Durbin (adurbin at chromium.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18680

-gerrit

commit aa5b03eff9d10ce7a5409f68af4883ff0aa821d4
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Wed Mar 8 11:21:06 2017 -0600

    drivers/spi/tpm: provide Kconfig to indicate CR50 usage
    
    Going forward it's important to note when a CR50 is expected
    to be present in the system. Additionally, this Kconfig addition
    provides symmetry with the equivalent i2c Kconfig option.
    
    BUG=b:35775104
    
    Change-Id: Ifbd42b8a22f407534b23459713558c77cde6935d
    Signed-off-by: Aaron Durbin <adurbin at chromium.org>
---
 src/drivers/spi/tpm/Kconfig      | 4 ++++
 src/mainboard/google/gru/Kconfig | 1 +
 2 files changed, 5 insertions(+)

diff --git a/src/drivers/spi/tpm/Kconfig b/src/drivers/spi/tpm/Kconfig
index d66d9ff..6c70436 100644
--- a/src/drivers/spi/tpm/Kconfig
+++ b/src/drivers/spi/tpm/Kconfig
@@ -11,3 +11,7 @@ config DRIVER_TPM_SPI_CHIP
 	int "Chip Select of the TPM chip on its SPI bus"
 	default 0
 	depends on SPI_TPM
+
+config MAINBOARD_HAS_SPI_TPM_CR50
+	bool
+	default n
diff --git a/src/mainboard/google/gru/Kconfig b/src/mainboard/google/gru/Kconfig
index 3048b01..c9886f6 100644
--- a/src/mainboard/google/gru/Kconfig
+++ b/src/mainboard/google/gru/Kconfig
@@ -48,6 +48,7 @@ config BOARD_SPECIFIC_OPTIONS
 config CHROMEOS
 	select EC_GOOGLE_CHROMEEC_SWITCHES
 	select EC_SOFTWARE_SYNC
+	select MAINBOARD_HAS_SPI_TPM_CR50 if GRU_HAS_TPM2
 	select SPI_TPM if GRU_HAS_TPM2
 	select VBOOT_VBNV_FLASH
 	select VIRTUAL_DEV_SWITCH



More information about the coreboot-gerrit mailing list