summaryrefslogtreecommitdiff
path: root/power/skylake.c
diff options
context:
space:
mode:
Diffstat (limited to 'power/skylake.c')
-rw-r--r--power/skylake.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/power/skylake.c b/power/skylake.c
index a5cf6aa0a5..ce6b823b5e 100644
--- a/power/skylake.c
+++ b/power/skylake.c
@@ -13,7 +13,6 @@
#include "lpc.h"
#include "panic.h"
#include "power_button.h"
-#include "skylake.h"
#include "system.h"
#include "timer.h"
@@ -22,6 +21,43 @@
static int forcing_shutdown; /* Forced shutdown in progress? */
+/* Power signals list. Must match order of enum power_signal. */
+const struct power_signal_info power_signal_list[] = {
+#ifdef CONFIG_POWER_S0IX
+ [X86_SLP_S0_DEASSERTED] = {
+ GPIO_PCH_SLP_S0_L,
+ POWER_SIGNAL_ACTIVE_HIGH | POWER_SIGNAL_DISABLE_AT_BOOT,
+ "SLP_S0_DEASSERTED",
+ },
+#endif
+ [X86_SLP_S3_DEASSERTED] = {
+ SLP_S3_SIGNAL_L,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "SLP_S3_DEASSERTED",
+ },
+ [X86_SLP_S4_DEASSERTED] = {
+ SLP_S4_SIGNAL_L,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "SLP_S4_DEASSERTED",
+ },
+ [X86_SLP_SUS_DEASSERTED] = {
+ GPIO_PCH_SLP_SUS_L,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "SLP_SUS_DEASSERTED",
+ },
+ [X86_RSMRST_L_PWRGD] = {
+ GPIO_RSMRST_L_PGOOD,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "RSMRST_N_PWRGD",
+ },
+ [X86_PMIC_DPWROK] = {
+ GPIO_PMIC_DPWROK,
+ POWER_SIGNAL_ACTIVE_HIGH,
+ "PMIC_DPWROK",
+ },
+};
+BUILD_ASSERT(ARRAY_SIZE(power_signal_list) == POWER_SIGNAL_COUNT);
+
void chipset_force_shutdown(enum chipset_shutdown_reason reason)
{