From 4fb279799bd7c3f92fdf298d33c35f7a29ad0550 Mon Sep 17 00:00:00 2001 From: Jack Rosenthal Date: Fri, 15 Jan 2021 11:36:49 -0700 Subject: zephyr: power: add shim option for S0ix Add a shim option for enabling S0ix and host sleep tracking. BUG=b:177609422 BRANCH=none TEST=power sequence kohaku Signed-off-by: Jack Rosenthal Change-Id: I2a41ec509339879c6a372bdc7d2d6d2e2bb651ae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633821 Reviewed-by: Simon Glass --- zephyr/Kconfig.powerseq | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'zephyr/Kconfig.powerseq') diff --git a/zephyr/Kconfig.powerseq b/zephyr/Kconfig.powerseq index 9481915644..1b7930f3d2 100644 --- a/zephyr/Kconfig.powerseq +++ b/zephyr/Kconfig.powerseq @@ -15,6 +15,13 @@ menuconfig PLATFORM_EC_POWERSEQ if PLATFORM_EC_POWERSEQ +config PLATFORM_EC_POWERSEQ_HOST_SLEEP + bool "Track host sleep states" + help + Enable EC code to track the AP sleep states. This is + required for S0ix support on Intel platforms, and optional + for boards without S0ix support. + menuconfig PLATFORM_EC_POWERSEQ_INTEL bool "Enable shimming common Intel power sequencing code" depends on AP_X86_INTEL @@ -53,6 +60,14 @@ config PLATFORM_EC_POWERSEQ_RTC_RESET gpio_map.h, which can be used to reset the AP's RTC when set high. +config PLATFORM_EC_POWERSEQ_S0IX + bool "Enable S0ix sleep states" + select PLATFORM_EC_POWERSEQ_HOST_SLEEP + help + Enable the CONFIG_POWER_S0IX platform/ec configuration + option, Intel's low-power idle sleep state, also known as + "modern sleep". + config PLATFORM_EC_POWERSEQ_COMETLAKE bool "Use common Comet Lake code for power sequencing" depends on AP_X86_INTEL_CML -- cgit v1.2.1