rockchip: board: place board_quiesce_devices() at the bottom

Being convenient for other functions to be called.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I1a02a150cf66ccf3dfc4be3621ad62829c3e6eb5
This commit is contained in:
Joseph Chen 2020-06-23 17:02:50 +08:00 committed by Jianhong Chen
parent 89d8b5fba1
commit 189c0d68bd
1 changed files with 16 additions and 16 deletions

View File

@ -469,22 +469,6 @@ void arch_preboot_os(uint32_t bootm_state)
hotkey_run(HK_CLI_OS_PRE);
}
void board_quiesce_devices(void *images)
{
hotkey_run(HK_CMDLINE);
hotkey_run(HK_CLI_OS_GO);
#ifdef CONFIG_ROCKCHIP_PRELOADER_ATAGS
/* Destroy atags makes next warm boot safer */
atags_destroy();
#endif
#ifdef CONFIG_FIT_ROLLBACK_PROTECT
/* TODO */
printf("fit: rollback protect not implement\n");
#endif
}
void enable_caches(void)
{
icache_enable();
@ -857,3 +841,19 @@ void board_fit_image_post_process(void **p_image, size_t *p_size)
#endif
}
#endif
void board_quiesce_devices(void *images)
{
hotkey_run(HK_CMDLINE);
hotkey_run(HK_CLI_OS_GO);
#ifdef CONFIG_ROCKCHIP_PRELOADER_ATAGS
/* Destroy atags makes next warm boot safer */
atags_destroy();
#endif
#ifdef CONFIG_FIT_ROLLBACK_PROTECT
/* TODO */
printf("fit: rollback protect not implement\n");
#endif
}