summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/config_allowed.txt1
-rw-r--r--zephyr/Kconfig.powerseq8
-rw-r--r--zephyr/shim/include/config_chip.h5
3 files changed, 14 insertions, 0 deletions
diff --git a/util/config_allowed.txt b/util/config_allowed.txt
index 5e17aa7185..f4a3d46ac6 100644
--- a/util/config_allowed.txt
+++ b/util/config_allowed.txt
@@ -316,6 +316,7 @@ CONFIG_CMD_RETIMER
CONFIG_CMD_RTC
CONFIG_CMD_RTC_ALARM
CONFIG_CMD_RW
+CONFIG_CMD_S5_TIMEOUT
CONFIG_CMD_SCRATCHPAD
CONFIG_CMD_SEVEN_SEG_DISPLAY
CONFIG_CMD_SHA256_TEST
diff --git a/zephyr/Kconfig.powerseq b/zephyr/Kconfig.powerseq
index d5d6df3a88..89a2d5729e 100644
--- a/zephyr/Kconfig.powerseq
+++ b/zephyr/Kconfig.powerseq
@@ -159,4 +159,12 @@ config PLATFORM_EC_POWERSEQ_SC7280
Enable power sequencing for the Qualcomm Snapdragon SC7280
chipset.
+config PLATFORM_EC_CONSOLE_CMD_S5_TIMEOUT
+ bool "Console command: s5_timeout"
+ help
+ Enable the console command 's5_timeout'. This command is used to
+ change the timeout waiting for inactivity in the S5 power state before
+ transitioning to the G3 state. This command is useful for power
+ testing.
+
endif # PLATFORM_EC_POWERSEQ
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 89f2ad4d52..f04e5f9945 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1713,4 +1713,9 @@
CONFIG_PLATFORM_EC_TEMP_SENSOR_FIRST_READ_DELAY_MS
#endif
+#undef CONFIG_CMD_S5_TIMEOUT
+#ifdef CONFIG_PLATFORM_EC_CONSOLE_CMD_S5_TIMEOUT
+#define CONFIG_CMD_S5_TIMEOUT
+#endif
+
#endif /* __CROS_EC_CONFIG_CHIP_H */