From 277a68daf93f7e8515e3e2be1fd12b3100b04c27 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Fri, 7 Feb 2020 12:32:43 +0800 Subject: [PATCH] common: bootm: add bootm_board_start() There maybe some board routine before bootm common flow. The board can override this __weak function. Signed-off-by: Joseph Chen Change-Id: I6660f4ef27f3889d2dbc29594ad164a12ec6c934 --- common/bootm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/bootm.c b/common/bootm.c index 22fa4c6bdb..79ea87bb94 100644 --- a/common/bootm.c +++ b/common/bootm.c @@ -48,6 +48,11 @@ __weak int board_do_bootm(int argc, char * const argv[]) return 0; } +__weak int bootm_board_start(void) +{ + return 0; +} + static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[], bootm_headers_t *images, ulong *os_data, ulong *os_len); @@ -91,7 +96,7 @@ static int bootm_start(cmd_tbl_t *cmdtp, int flag, int argc, bootstage_mark_name(BOOTSTAGE_ID_BOOTM_START, "bootm_start"); images.state = BOOTM_STATE_START; - return 0; + return bootm_board_start(); } static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,