]> git.baikalelectronics.ru Git - uboot.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)
commita632a3437ef540eee8824d358cb7fd2603a4d099
treea4505235689e4fb85770a72a6f57c249a5832a0c
parent5695ee754e178623acc5aae83c2ea9d7100afcb7
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