summaryrefslogtreecommitdiff
path: root/arch/arm/lib
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2019-10-07 13:52:15 +0530
committerTom Rini <trini@konsulko.com>2019-10-25 17:33:21 -0400
commit899a9de3e462d93d7c91f5205b41d4c41e01ccbb (patch)
treef92c8d0f5aa57136657dad5d4ac7b20c7cd688ad /arch/arm/lib
parent18df182b63521a80e3cfddcc5f793012f051d941 (diff)
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>
Diffstat (limited to 'arch/arm/lib')
-rw-r--r--arch/arm/lib/bootm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c
index 1638f1e81d..488358a331 100644
--- a/arch/arm/lib/bootm.c
+++ b/arch/arm/lib/bootm.c
@@ -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)