mb/emulation/qemu-q35: Enable option for TPM
commit516967c681a1cadfb053d8f4c098826eca743131
authorDuncan Laurie <dlaurie@google.com>
Wed, 18 Mar 2020 01:49:39 +0000 (17 18:49 -0700)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 31 Mar 2020 10:42:20 +0000 (31 10:42 +0000)
tree058b591a832e7c11331f16725961036043b0520e
parentb40e780f8bf8f23337cf5125afdd4c3e04ec5d8c
mb/emulation/qemu-q35: Enable option for TPM

This enables the mainboard to use a TPM if it is selected in the
configuration.  By default this does nothing, but it allows the
TPM to be enabled and used with the CONFIG_USER_TPM2 Kconfig option.

Using a TPM with QEMU requires either a physical TPM backend or
the swtpm package with a socket:

  -chardev socket,id=swtpm,path=/tmp/swtpm/socket
  -tpmdev emulator,id=tpm0,chardev=swtpm
  -device tpm-tis,tpmdev=tpm0

Change-Id: I0d79a5a0f590c57998ababb660b52d9e3ed2d484
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39836
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/mainboard/emulation/qemu-q35/Kconfig
src/mainboard/emulation/qemu-q35/devicetree.cb