diff options
author | Keith Short <keithshort@chromium.org> | 2021-07-09 14:57:38 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-12 15:42:12 +0000 |
commit | 613a10bce601bf20be198469982733d059e5bc36 (patch) | |
tree | 74026ecdb64f51ed99f4811db639d69332f7cbbc /zephyr | |
parent | 8b81257ffd943e6ad301b647ef31338df13433b5 (diff) | |
download | chrome-ec-613a10bce601bf20be198469982733d059e5bc36.tar.gz |
zephyr: add support for CONFIG_CMD_S5_TIMEOUT
Add a Kconfig option to control the CONFIG_CMD_S5_TIMEOUT option.
BUG=b:193195946
BRANCH=none
TEST=zmake testall
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I2f4b8c74a9b710f68d8e07e04d9cb95ca2e39dea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3015869
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r-- | zephyr/Kconfig.powerseq | 8 | ||||
-rw-r--r-- | zephyr/shim/include/config_chip.h | 5 |
2 files changed, 13 insertions, 0 deletions
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 */ |