diff options
| author | Andrejs Cainikovs <[email protected]> | 2024-08-07 16:16:17 +0200 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2024-08-23 14:48:43 -0300 |
| commit | e0555f43ddbeeaea1632e1da5682895609448c05 (patch) | |
| tree | 3c2c3c69e85314b765d28e1e672c613f8059c5b6 | |
| parent | e93d343cc7d2886b1148d885aa137d46bbce0570 (diff) | |
board: apalis-imx8: add reset code
With commit 922d4504bcab ("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 <[email protected]>
Signed-off-by: Max Krummenacher <[email protected]>
| -rw-r--r-- | board/toradex/apalis-imx8/apalis-imx8.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c index 72d67d90d41..570bf2a27d4 100644 --- a/board/toradex/apalis-imx8/apalis-imx8.c +++ b/board/toradex/apalis-imx8/apalis-imx8.c @@ -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) { |
