summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.powerseq10
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 15 insertions, 0 deletions
diff --git a/zephyr/Kconfig.powerseq b/zephyr/Kconfig.powerseq
index 1b7930f3d2..07e31a6bff 100644
--- a/zephyr/Kconfig.powerseq
+++ b/zephyr/Kconfig.powerseq
@@ -22,6 +22,16 @@ config PLATFORM_EC_POWERSEQ_HOST_SLEEP
required for S0ix support on Intel platforms, and optional
for boards without S0ix support.
+config PLATFORM_EC_POWER_SLEEP_FAILURE_DETECTION
+ bool "Detect failure to enter a sleep state (S0ix/S3)"
+ depends on PLATFORM_EC_POWERSEQ_HOST_SLEEP
+ help
+ Enables detection of the AP failing to go to sleep, perhaps due to a
+ bug in the internal SoC periodic housekeeping code.
+
+ Failure information is reported via the EC_CMD_HOST_SLEEP_EVENT host
+ command.
+
menuconfig PLATFORM_EC_POWERSEQ_INTEL
bool "Enable shimming common Intel power sequencing code"
depends on AP_X86_INTEL
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 087de67bed..d7f6dcb117 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -305,6 +305,11 @@ enum battery_type {
#define CONFIG_POWER_TRACK_HOST_SLEEP_STATE
#endif
+#undef CONFIG_POWER_SLEEP_FAILURE_DETECTION
+#ifdef CONFIG_PLATFORM_EC_POWER_SLEEP_FAILURE_DETECTION
+#define CONFIG_POWER_SLEEP_FAILURE_DETECTION
+#endif
+
#ifdef CONFIG_PLATFORM_EC_POWERSEQ_RSMRST_DELAY
#define CONFIG_CHIPSET_X86_RSMRST_DELAY
#endif