aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/tpm/Kconfig
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2020-09-21 09:49:31 +0200
committerHung-Te Lin <hungte@chromium.org>2020-12-21 02:38:20 +0000
commit39d69276091043a41d7cd588dd686ea4b572592e (patch)
tree0f65c0419a855ac6fc7264ad346580c41a02fac4 /src/drivers/tpm/Kconfig
parentf20151dfaa4ffbee9b58aa86d77320c45bd81707 (diff)
drivers/tpm: Implement full PPI
Implement the ACPI PPI interface as described in "TCG PC Client Physical Presence Interface Specification" Version 1.3. Add a new Kconfig that allows to use the full PPI instead of the stub version compiled in. This doesn't add code to execute the PPI request, as that's up to the payload with graphical UI support. Tested on GNU/Linux 5.6 using the sysfs interface at: /sys/class/tpm/tpm0/ppi/ Change-Id: Ifffe1d9b715e2c37568e1b009e86c298025c89ac Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45568 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/tpm/Kconfig')
-rw-r--r--src/drivers/tpm/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/drivers/tpm/Kconfig b/src/drivers/tpm/Kconfig
index 8508210fc6..baf760b4b0 100644
--- a/src/drivers/tpm/Kconfig
+++ b/src/drivers/tpm/Kconfig
@@ -5,3 +5,14 @@ config TPM_INIT
help
This driver automatically initializes the TPM if vboot is not used.
The TPM driver init is done during the ramstage chip init phase.
+
+config TPM_PPI
+ bool "Generate ACPI code to implement TPM physical presence interface"
+ depends on TPM1 || TPM2
+ depends on HAVE_ACPI_TABLES
+ depends on !CHROMEOS
+ default y if PAYLOAD_TIANOCORE
+ help
+ This driver automatically generates ACPI tables for the Physical
+ Presence Interface defined by the TCG. If not activated only a stub
+ will be generated without any functionality.