summaryrefslogtreecommitdiff
path: root/src/soc/intel/pantherlake/reset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/pantherlake/reset.c')
-rw-r--r--src/soc/intel/pantherlake/reset.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/intel/pantherlake/reset.c b/src/soc/intel/pantherlake/reset.c
new file mode 100644
index 0000000000..bc5815ac7a
--- /dev/null
+++ b/src/soc/intel/pantherlake/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();
+}