]> git.baikalelectronics.ru Git - uboot.git/commit
Merge tag 'tpm-next-28022023' of https://source.denx.de/u-boot/custodians/u-boot...
authorTom Rini <trini@konsulko.com>
Tue, 28 Feb 2023 14:50:16 +0000 (09:50 -0500)
committerTom Rini <trini@konsulko.com>
Tue, 28 Feb 2023 14:50:16 +0000 (09:50 -0500)
commitd3ed0a132d43013af5337cb4c3e7506d26c5e027
tree6609cc57d553683eaed0ccfb9dca295af66ef29c
parentac2c3fc26c59a93c3d6056e453212909f64b00a9
parent146a5b7202830cf4708dab7ab5bb1f634cd1cda0
Merge tag 'tpm-next-28022023' of https://source.denx.de/u-boot/custodians/u-boot-tpm into next

TPM auto startup and testing:

Due to U-Boot's lazy binding we always relied on command line tools to
initialize the TPM subsystem and devices.  One exception is the EFI
subsystem.  When compiled with TCG2 measured boot support the TPM was
automatically initialized.

However that init was not complete.  The TCG specs [0] (and specifically
ยง12.3 Self-test modes) describe how self-tests on the device should be
performed.  This PR is adding an extra API function, that can be used to
initialize the TPM2.0 properly.

Simon added the equivalent for TPM1.2 and refactored the DM tests to
include the new funtion.

[0] https://trustedcomputinggroup.org/wp-content/uploads/TPM-Rev-2.0-Part-1-Architecture-01.07-2014-03-13.pdf