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 <chenjh@rock-chips.com>
Change-Id: I6660f4ef27f3889d2dbc29594ad164a12ec6c934
This commit is contained in:
Joseph Chen 2020-02-07 12:32:43 +08:00
parent 998aeb5fa7
commit 277a68daf9
1 changed files with 6 additions and 1 deletions

View File

@ -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,