Jonathan Zhang | 3ed903f | 2023-01-25 11:37:27 -0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <cf9_reset.h> | ||||
4 | #include <intelblocks/cse.h> | ||||
5 | #include <intelblocks/pmclib.h> | ||||
6 | #include <soc/intel/common/reset.h> | ||||
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 | } |