efi_loader: call efi_init_early() earlier
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 28 Apr 2022 06:30:30 +0000 (06:30 +0000)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 29 Apr 2022 12:25:40 +0000 (14:25 +0200)
efi_init_early() creates an event hook for block device probing.
It has to be called before any block device is probed.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
common/board_r.c

index ff17720..93c9c2e 100644 (file)
@@ -693,6 +693,9 @@ static init_fnc_t init_sequence_r[] = {
        /* initialize higher level parts of CPU like time base and timers */
        cpu_init_r,
 #endif
+#ifdef CONFIG_EFI_SETUP_EARLY
+       efi_init_early,
+#endif
 #ifdef CONFIG_CMD_NAND
        initr_nand,
 #endif
@@ -793,9 +796,6 @@ static init_fnc_t init_sequence_r[] = {
 #if defined(CONFIG_PRAM)
        initr_mem,
 #endif
-#ifdef CONFIG_EFI_SETUP_EARLY
-       efi_init_early,
-#endif
        run_main_loop,
 };