aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/Kconfig
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-05-01 15:47:06 -0700
committerFurquan Shaikh <furquan@google.com>2017-05-03 00:29:31 +0200
commit553f7fb27c14667e7bacf31040b9d58ca74dd06d (patch)
tree78d56ed48eb925361da05d0de36c0bb7a49e55a8 /src/mainboard/google/poppy/Kconfig
parenta118c2edcca952628097e4ed3b4fd945c8d16e55 (diff)
mainboard/google/poppy: Add support for cr50 I2C TPM
1. Add support for using cr50 I2C TPM on poppy. This will not be enabled until the next build. 2. Also, configure GPIOs for SPI and I2C TPM only if the corresponding Kconfig options are set. BUG=b:36265511 TEST=Verified on a reworked board that I2C TPM communication works fine. Change-Id: I3b293b8d410a6973a6dfea393c17d0be425b6a28 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/19518 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/poppy/Kconfig')
-rw-r--r--src/mainboard/google/poppy/Kconfig28
1 files changed, 21 insertions, 7 deletions
diff --git a/src/mainboard/google/poppy/Kconfig b/src/mainboard/google/poppy/Kconfig
index ce320813c0..58af8df4dd 100644
--- a/src/mainboard/google/poppy/Kconfig
+++ b/src/mainboard/google/poppy/Kconfig
@@ -22,7 +22,16 @@ config DEVICETREE
string
default "variants/baseboard/devicetree.cb"
+config DRIVER_TPM_I2C_BUS
+ depends on POPPY_USE_I2C_TPM
+ default 0x4
+
+config DRIVER_TPM_I2C_ADDR
+ depends on POPPY_USE_I2C_TPM
+ default 0x50
+
config DRIVER_TPM_SPI_BUS
+ depends on POPPY_USE_SPI_TPM
default 0x1
config GBB_HWID
@@ -56,6 +65,14 @@ config MAX_CPUS
int
default 8
+# Select this option to enable use of cr50 I2C TPM on poppy.
+config POPPY_USE_I2C_TPM
+ bool
+ default n
+ select I2C_TPM
+ select MAINBOARD_HAS_I2C_TPM_CR50
+ select TPM2
+
# Select this option to enable use of cr50 SPI TPM on poppy.
# This option is disabled by default.
config POPPY_USE_SPI_TPM
@@ -65,6 +82,10 @@ config POPPY_USE_SPI_TPM
select SPI_TPM
select TPM2
+config TPM_TIS_ACPI_INTERRUPT
+ int
+ default 64 # GPE0_DW2_00 (GPP_E0)
+
config VARIANT_DIR
string
default "poppy" if BOARD_GOOGLE_POPPY
@@ -76,11 +97,4 @@ config VBOOT
select MRC_CLEAR_NORMAL_CACHE_ON_RECOVERY_RETRAIN
select VBOOT_LID_SWITCH
-config DRIVER_TPM_SPI_BUS
- default 0x1
-
-config TPM_TIS_ACPI_INTERRUPT
- int
- default 64 # GPE0_DW2_00 (GPP_E0)
-
endif # BOARD_GOOGLE_BASEBOARD_POPPY