Masanori Ogino has uploaded a new patch set (#9) to the change originally created by Denis Carikli. ( https://review.coreboot.org/c/coreboot/+/13410 )
Change subject: lenovo/x60: Enable TPM ......................................................................
lenovo/x60: Enable TPM
Enable the TPM device in the devicetree, and select the Kconfig option to add the appropriate ASL code.
This is adapted from the commit below:
3d02b9c mainboard/lenovo/{t430s,t420s,t520,t530,x220}: Add TPM 1.2 mainboard support
Without that patch, coreboot doesn't touch the TPM, and, in GNU/Linux, the TPM is not detected automatically. It can still be used by running:
modprobe tpm_tis force=1
which initializes it. From dmesg:
tpm_tis tpm_tis: 1.2 TPM (device-id 0x3202, rev-id 5) tpm tpm0: A TPM error (38) occurred attempting to determine the timeouts tpm tpm0: Issuing TPM_STARTUP tpm tpm0: [Hardware Error]: Adjusting reported timeouts: A 10000->10000us B 10000->10000us C 0->750000us D 0->750000us
With this patch, the TPM is found detected automatically, and we have the folliwing in dmesg:
tpm_tis 00:07: 1.2 TPM (device-id 0x3202, rev-id 5) tpm tpm0: A TPM error (38) occurred attempting to determine the timeouts tpm tpm0: Issuing TPM_STARTUP tpm tpm0: [Hardware Error]: Adjusting reported timeouts: A 10000->10000us B 10000->10000us C 0->750000us D 0->750000us
TEST=Linux 4.10.8 creates `/dev/tpm0` automatically.
Change-Id: I6e65b37507c111af1c0c56822327d5497f58f085 Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@no-log.org Signed-off-by: Paul Menzel paulepanter@users.sourceforge.net Signed-off-by: Masanori Ogino mogino@acm.org --- M src/mainboard/lenovo/x60/Kconfig M src/mainboard/lenovo/x60/devicetree.cb 2 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/13410/9