diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-10-29 13:47:45 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-30 14:20:27 +0100 |
commit | c57c9439548a58a0c1f0eb2ec7b5ab5d7b7fd801 (patch) | |
tree | f6da4498dd76cfd8b1041d13bfb654c5daa40114 /common/board_r.c | |
parent | f234566ef03db4be17fc36bb1a104a70512555f1 (diff) | |
download | u-boot-c57c9439548a58a0c1f0eb2ec7b5ab5d7b7fd801.tar.gz |
efi_loader: add option to initialise EFI subsystem early
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation
of UEFI subsystem will be done as part of U-Boot initialisation.
Please note that this option won't be enabled explicitly by users,
instead, should be enabled implicitly by other configuration options.
Specifically, this feature will be utilised in implementing capsule-on-disk
feature.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common/board_r.c')
-rw-r--r-- | common/board_r.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index b9217b2e27..2212d981e5 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -73,6 +73,9 @@ #if defined(CONFIG_GPIO_HOG) #include <asm/gpio.h> #endif +#ifdef CONFIG_EFI_SETUP_EARLY +#include <efi_loader.h> +#endif DECLARE_GLOBAL_DATA_PTR; @@ -890,6 +893,9 @@ static init_fnc_t init_sequence_r[] = { #if defined(CONFIG_PRAM) initr_mem, #endif +#ifdef CONFIG_EFI_SETUP_EARLY + (init_fnc_t)efi_init_obj_list, +#endif run_main_loop, }; |