1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-06 19:22:11 +02:00

boot: arm: Enable support for custom board_prep_linux

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>
This commit is contained in:
Lokesh Vutla
2019-10-07 13:52:15 +05:30
committed by Tom Rini
parent 18df182b63
commit 899a9de3e4

View File

@@ -224,6 +224,8 @@ static void do_nonsec_virt_switch(void)
} }
#endif #endif
__weak void board_prep_linux(bootm_headers_t *images) { }
/* Subcommand: PREP */ /* Subcommand: PREP */
static void boot_prep_linux(bootm_headers_t *images) 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"); printf("FDT and ATAGS support not compiled in - hanging\n");
hang(); hang();
} }
board_prep_linux(images);
} }
__weak bool armv7_boot_nonsec_default(void) __weak bool armv7_boot_nonsec_default(void)