Angel Pons | 0612b27 | 2020-04-05 15:46:56 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Lee Leahy | 14ecb54 | 2015-02-09 21:16:14 -0800 | [diff] [blame] | 2 | |
Patrick Rudolph | f677d17 | 2018-10-01 19:17:11 +0200 | [diff] [blame] | 3 | #include <arch/cache.h> |
4 | #include <cf9_reset.h> | ||||
5 | #include <console/console.h> | ||||
6 | #include <halt.h> | ||||
Lee Leahy | 14ecb54 | 2015-02-09 21:16:14 -0800 | [diff] [blame] | 7 | #include <reset.h> |
8 | |||||
Patrick Rudolph | f677d17 | 2018-10-01 19:17:11 +0200 | [diff] [blame] | 9 | #include "reset.h" |
Lee Leahy | 14ecb54 | 2015-02-09 21:16:14 -0800 | [diff] [blame] | 10 | |
Patrick Rudolph | f677d17 | 2018-10-01 19:17:11 +0200 | [diff] [blame] | 11 | void global_reset(void) |
Lee Leahy | 14ecb54 | 2015-02-09 21:16:14 -0800 | [diff] [blame] | 12 | { |
Patrick Rudolph | f677d17 | 2018-10-01 19:17:11 +0200 | [diff] [blame] | 13 | printk(BIOS_INFO, "%s() called!\n", __func__); |
14 | cf9_reset_prepare(); | ||||
15 | dcache_clean_all(); | ||||
Furquan Shaikh | b13bd1e | 2020-09-21 22:44:27 +0000 | [diff] [blame] | 16 | do_global_reset(); |
Patrick Rudolph | f677d17 | 2018-10-01 19:17:11 +0200 | [diff] [blame] | 17 | halt(); |
18 | } | ||||
19 | |||||
20 | void do_board_reset(void) | ||||
21 | { | ||||
22 | full_reset(); | ||||
Lee Leahy | 14ecb54 | 2015-02-09 21:16:14 -0800 | [diff] [blame] | 23 | } |