From: Marek Vasut Date: Thu, 4 Oct 2018 19:16:31 +0000 (+0200) Subject: bootm: Add board specific OS preboot hook X-Git-Tag: v2018.11-rc2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd3d1212a2cbbcde848dc109d4c2bbfb759f9d4e;p=platform%2Fkernel%2Fu-boot.git bootm: Add board specific OS preboot hook Add board-specific hook which is executed before the code hands over control to the OS. This lets the board perform some last-minute clean ups. Signed-off-by: Marek Vasut Cc: Tom Rini Reviewed-by: Simon Goldschmidt --- diff --git a/common/bootm_os.c b/common/bootm_os.c index f4bd905..f302135 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -505,10 +505,17 @@ __weak void arch_preboot_os(void) /* please define platform specific arch_preboot_os() */ } +/* Allow for board specific config before we boot */ +__weak void board_preboot_os(void) +{ + /* please define board specific board_preboot_os() */ +} + int boot_selected_os(int argc, char * const argv[], int state, bootm_headers_t *images, boot_os_fn *boot_fn) { arch_preboot_os(); + board_preboot_os(); boot_fn(state, argc, argv, images); /* Stand-alone may return when 'autostart' is 'no' */