diff options
Diffstat (limited to 'src/soc/intel/xeon_sp/spr/reset.c')
-rw-r--r-- | src/soc/intel/xeon_sp/spr/reset.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/spr/reset.c b/src/soc/intel/xeon_sp/spr/reset.c new file mode 100644 index 0000000000..bc5815ac7a --- /dev/null +++ b/src/soc/intel/xeon_sp/spr/reset.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +#include <cf9_reset.h> +#include <intelblocks/cse.h> +#include <intelblocks/pmclib.h> +#include <soc/intel/common/reset.h> + +void do_global_reset(void) +{ + /* Ask CSE to do the global reset */ + if (cse_request_global_reset()) + return; + + /* global reset if CSE fail to reset */ + pmc_global_reset_enable(1); + do_full_reset(); +} |