Angel Pons | 16f6aa8 | 2020-04-05 15:47:21 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 2 | |
Furquan Shaikh | b13bd1e | 2020-09-21 22:44:27 +0000 | [diff] [blame] | 3 | #include <cf9_reset.h> |
Furquan Shaikh | b13bd1e | 2020-09-21 22:44:27 +0000 | [diff] [blame] | 4 | #include <intelblocks/cse.h> |
| 5 | #include <intelblocks/pmclib.h> |
Subrata Banik | 91e89c5 | 2019-11-01 18:30:01 +0530 | [diff] [blame] | 6 | #include <soc/intel/common/reset.h> |
Furquan Shaikh | b13bd1e | 2020-09-21 22:44:27 +0000 | [diff] [blame] | 7 | |
| 8 | void do_global_reset(void) |
| 9 | { |
| 10 | /* Ask CSE to do the global reset */ |
| 11 | if (cse_request_global_reset()) |
| 12 | return; |
| 13 | |
| 14 | /* global reset if CSE fail to reset */ |
| 15 | pmc_global_reset_enable(1); |
| 16 | do_full_reset(); |
| 17 | } |