board: apalis-imx8: add reset code
With commit 922d4504bc ("imx: scu_api: update to version 1.16 and
add more APIs") added the reboot API.
Add the board code to use that.
Signed-off-by: Andrejs Cainikovs <andrejs.cainikovs@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
This commit is contained in:
committed by
Fabio Estevam
parent
e93d343cc7
commit
e0555f43dd
@@ -290,6 +290,14 @@ int board_init(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void reset_cpu(void)
|
||||
{
|
||||
sc_pm_reboot(-1, SC_PM_RESET_TYPE_COLD);
|
||||
|
||||
do {
|
||||
} while (1);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_BOARD_SETUP)
|
||||
int ft_board_setup(void *blob, struct bd_info *bd)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user