summaryrefslogtreecommitdiff
path: root/src/soc/intel/elkhartlake/pmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/elkhartlake/pmc.c')
-rw-r--r--src/soc/intel/elkhartlake/pmc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/soc/intel/elkhartlake/pmc.c b/src/soc/intel/elkhartlake/pmc.c
index 53193ea11e..cf736dd2ca 100644
--- a/src/soc/intel/elkhartlake/pmc.c
+++ b/src/soc/intel/elkhartlake/pmc.c
@@ -109,6 +109,22 @@ static void pmc_fill_ssdt(const struct device *dev)
generate_acpi_power_engine();
}
+/*
+ * `pmc_final` function is native implementation of equivalent events performed by
+ * each FSP NotifyPhase() API invocations.
+ *
+ *
+ * Clear PMCON status bits (Global Reset/Power Failure/Host Reset Status bits)
+ *
+ * Perform the PMCON status bit clear operation from `.final`
+ * to cover any such chances where later boot stage requested a global
+ * reset and PMCON status bit remains set.
+ */
+static void pmc_final(struct device *dev)
+{
+ pmc_clear_pmcon_sts();
+}
+
struct device_operations pmc_ops = {
.read_resources = soc_pmc_read_resources,
.set_resources = noop_set_resources,
@@ -117,4 +133,5 @@ struct device_operations pmc_ops = {
#if CONFIG(HAVE_ACPI_TABLES)
.acpi_fill_ssdt = pmc_fill_ssdt,
#endif
+ .final = pmc_final,
};