From 8bc896f7129b8e47cbca1c15b87a449620186cf8 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Wed, 19 Apr 2017 10:19:38 -0500 Subject: Kconfig: provide MAINBOARD_HAS_TPM_CR50 option The CR50 TPM can do both SPI and I2C communication. However, there's situations where policy needs to be applied for CR50 generically regardless of the I/O transport. Therefore add MAINBOARD_HAS_TPM_CR50 to encompass that. Additionally, once the mainboard has selected CR50 TPM automatically select MAINBOARD_HAS_TPM2 since CR50 TPM is TPM 2.0. Change-Id: I878f9b9dc99cfb0252d6fef7fc020fa3d391fcec Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/19370 Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index 7dc738fbd2..a37c26137e 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -402,6 +402,12 @@ config TPM2 If unsure, say N. +config MAINBOARD_HAS_TPM_CR50 + bool + default y if MAINBOARD_HAS_SPI_TPM_CR50 || MAINBOARD_HAS_I2C_TPM_CR50 + default n + select MAINBOARD_HAS_TPM2 + config HEAP_SIZE hex default 0x4000 -- cgit v1.2.3