]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: startup the tpm device when installing the protocol
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 18 Nov 2021 08:13:42 +0000 (10:13 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 20 Nov 2021 09:53:01 +0000 (10:53 +0100)
commitd6b55a420cfce660343cc1f60e68fcad0157925a
treea4505235689e4fb85770a72a6f57c249a5832a0c
parent5ba0397049b4ad5e2e23e47a8ae412e2d9044c67
efi_loader: startup the tpm device when installing the protocol

Due to U-Boot's lazy binding mentality the TPM is probed but not properly
initialized.  The user can startup the device from the command line
e.g 'tpm2 startup TPM2_SU_CLEAR'.  However we can initialize the TPM during
the TCG protocol installation,  which is easier to use overall.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_tcg2.c