From 54226819429bb3d34b4914a69713046c52e03973 Mon Sep 17 00:00:00 2001 From: Christian Walter Date: Tue, 16 Jul 2019 20:07:36 +0200 Subject: drivers/crb: Add support for PTT When we use Intel Platform Trust Technologies, we need to verify that the enable bit is set before we use the integrated TPM. Change-Id: I3b262a5d5253648fb96fb1fd9ba3995f92755bb1 Signed-off-by: Christian Walter Reviewed-on: https://review.coreboot.org/c/coreboot/+/34381 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese Reviewed-by: Julius Werner --- src/drivers/crb/tis.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/drivers/crb/tis.c b/src/drivers/crb/tis.c index c110151766..94bfb9ef15 100644 --- a/src/drivers/crb/tis.c +++ b/src/drivers/crb/tis.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "tpm.h" #include "chip.h" @@ -49,6 +50,14 @@ int tis_open(void) return -1; } + if (CONFIG(HAVE_INTEL_PTT)) { + if (!ptt_active()) { + printk(BIOS_ERR, "%s: Intel PTT is not active.\n", __func__); + return -1; + } + printk(BIOS_DEBUG, "%s: Intel PTT is active.\n", __func__); + } + return 0; } -- cgit v1.2.3