]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: use tpm_auto_start for the tpm device
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 25 Jan 2023 11:06:03 +0000 (13:06 +0200)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 28 Feb 2023 07:44:22 +0000 (09:44 +0200)
A previous commit is adding a new tpm startup functions which
initializes the TPMv2 and performs all the needed selftests.
Since the TPM selftests might be needed depending on the requested
algorithm or functional module use that instead.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_tcg2.c

index 2dcc31715760d8a711d244a5d38e96ab6b99eed7..a83ae7a46cf3509c1dc6bf3071609bec5ac5a14b 100644 (file)
@@ -2495,7 +2495,7 @@ efi_status_t efi_tcg2_register(void)
        }
 
        /* initialize the TPM as early as possible. */
-       err = tpm_startup(dev, TPM_ST_CLEAR);
+       err = tpm_auto_start(dev);
        if (err) {
                log_err("TPM startup failed\n");
                goto fail;