rockchip: board.c: support reboot stess test

It's a way to test system stability before kernel stages.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6679fbbbaa7233750b409b6b832849d8dbd36893
This commit is contained in:
Joseph Chen 2021-01-25 09:38:23 +08:00 committed by Jianhong Chen
parent 4b1cd58cd0
commit a225402cf7
2 changed files with 10 additions and 0 deletions

View File

@ -777,6 +777,12 @@ config ROCKCHIP_UART_MUX_SEL_M
help
This select uart multiplexer for debug uart iomux in board_debug_uart_init.
config ROCKCHIP_REBOOT_TEST
bool "Rockchip reboot stress test before kernel"
default n
help
It's a reboot stress test before kernel stages.
config BASE_DEFCONFIG
string "Base defconfig of config fragment"
default ""

View File

@ -912,6 +912,10 @@ void board_quiesce_devices(void *images)
atags_destroy();
#endif
#ifdef CONFIG_ROCKCHIP_REBOOT_TEST
do_reset(NULL, 0, 0, NULL);
#endif
#ifdef CONFIG_FIT_ROLLBACK_PROTECT
int ret;