summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drivers/crb/tis.c9
1 files changed, 9 insertions, 0 deletions
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 <security/tpm/tis.h>
#include <arch/acpigen.h>
#include <device/device.h>
+#include <drivers/intel/ptt/ptt.h>
#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;
}