diff options
author | Marek Vasut <marex@denx.de> | 2018-10-04 21:16:31 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-10-10 13:35:09 -0400 |
commit | fd3d1212a2cbbcde848dc109d4c2bbfb759f9d4e (patch) | |
tree | bb810dd6c553ac2223fdfa58d50c7b5df7299208 /common/bootm_os.c | |
parent | 81089a54300df5fa5b4a22e3bf4df6b521438f68 (diff) | |
download | u-boot-fd3d1212a2cbbcde848dc109d4c2bbfb759f9d4e.zip u-boot-fd3d1212a2cbbcde848dc109d4c2bbfb759f9d4e.tar.gz u-boot-fd3d1212a2cbbcde848dc109d4c2bbfb759f9d4e.tar.bz2 |
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 <marex@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'common/bootm_os.c')
-rw-r--r-- | common/bootm_os.c | 7 |
1 files changed, 7 insertions, 0 deletions
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' */ |