]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
boot: arm: Enable support for custom board_prep_linux
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 7 Oct 2019 08:22:15 +0000 (13:52 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 25 Oct 2019 21:33:21 +0000 (17:33 -0400)
Once the arch specific boot_prepare_linux completes, boards wants to
have a custom preparation for linux. Add support for a custom
board_prep_linux.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
arch/arm/lib/bootm.c

index 1638f1e81d700274c0ba9a7bd84f9bf5c396f2d7..488358a33163df342cd00b6543ea17bf8bd72104 100644 (file)
@@ -224,6 +224,8 @@ static void do_nonsec_virt_switch(void)
 }
 #endif
 
+__weak void board_prep_linux(bootm_headers_t *images) { }
+
 /* Subcommand: PREP */
 static void boot_prep_linux(bootm_headers_t *images)
 {
@@ -270,6 +272,8 @@ static void boot_prep_linux(bootm_headers_t *images)
                printf("FDT and ATAGS support not compiled in - hanging\n");
                hang();
        }
+
+       board_prep_linux(images);
 }
 
 __weak bool armv7_boot_nonsec_default(void)