diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-05 08:01:32 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-05 08:01:32 -0400 |
commit | 46b5c8ed017958fc387ab86c71ae6c90abb6793c (patch) | |
tree | 4162612e16af05f7ed57a461207af988fd8e5815 /lib/efi_loader | |
parent | ea2997ed2d1d2a24f598f368de441530c8dba7a2 (diff) | |
parent | de70619dd3db08e4a1ac881801d3fab979408fd3 (diff) |
Merge tag 'tpm-030822' of https://source.denx.de/u-boot/custodians/u-boot-tpm
EFI_RNG_PROTOCOL with a TPM
Diffstat (limited to 'lib/efi_loader')
-rw-r--r-- | lib/efi_loader/efi_setup.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/efi_loader/efi_setup.c b/lib/efi_loader/efi_setup.c index 492ecf4cb1..751beda590 100644 --- a/lib/efi_loader/efi_setup.c +++ b/lib/efi_loader/efi_setup.c @@ -246,13 +246,6 @@ efi_status_t efi_init_obj_list(void) /* Set up console modes */ efi_setup_console_size(); - /* Install EFI_RNG_PROTOCOL */ - if (IS_ENABLED(CONFIG_EFI_RNG_PROTOCOL)) { - ret = efi_rng_register(); - if (ret != EFI_SUCCESS) - goto out; - } - /* Initialize variable services */ ret = efi_init_variables(); if (ret != EFI_SUCCESS) @@ -289,6 +282,13 @@ efi_status_t efi_init_obj_list(void) goto out; } + /* Install EFI_RNG_PROTOCOL */ + if (IS_ENABLED(CONFIG_EFI_RNG_PROTOCOL)) { + ret = efi_rng_register(); + if (ret != EFI_SUCCESS) + goto out; + } + if (IS_ENABLED(CONFIG_EFI_RISCV_BOOT_PROTOCOL)) { ret = efi_riscv_register(); if (ret != EFI_SUCCESS) |