diff options
author | Evan Green <evgreen@chromium.org> | 2021-12-01 09:17:49 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-02 00:23:20 +0000 |
commit | 59b24a73350bd3a117d2aed94d8f9a4a41e71e0e (patch) | |
tree | 15598d14ed49424659c49d6de8809d029d36b182 /power | |
parent | 9e6cf67e91c7432aef9609b2a9778125b07146b1 (diff) | |
download | chrome-ec-59b24a73350bd3a117d2aed94d8f9a4a41e71e0e.tar.gz |
power/alderlake: Add SLP_S5 as a watched power signal
Add SLP_S5 as a power signal to watch and generate interrupts for when
it changes. This change doesn't really do anything by itself since
there's no software which observes and responds to these changes.
Additionally, without CONFIG_HOSTCMD_ESPI_VW_SLP_S5, SLP_S5_SIGNAL_L is
defined to SLP_S4_SIGNAL_L, so we're actually reporting changes of
VW_SLP_S4 under this new power signal. In the next CL, we'll wire up
the common SLP_S5 power signal to this virtual wire so that the
power state machine can actually see changes on this line. A Cq-Depend
line is added, though not technically necessary, to indicate this
somewhat mind-melting state is only transient.
BRANCH=None
BUG=b:204947672
TEST=hiberman hibernate --test-keys on volteer
Cq-Depend: chromium:3286185
Signed-off-by: Evan Green <evgreen@chromium.org>
Change-Id: I77b1aad508eeae3b3f8b307d02cb98460341e6bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3310527
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/alderlake_slg4bd44540.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/power/alderlake_slg4bd44540.c b/power/alderlake_slg4bd44540.c index 7c6e16b9c1..88bbefa654 100644 --- a/power/alderlake_slg4bd44540.c +++ b/power/alderlake_slg4bd44540.c @@ -67,6 +67,11 @@ const struct power_signal_info power_signal_list[] = { .flags = POWER_SIGNAL_ACTIVE_HIGH, .name = "SLP_S4_DEASSERTED", }, + [X86_SLP_S5_DEASSERTED] = { + .gpio = SLP_S5_SIGNAL_L, + .flags = POWER_SIGNAL_ACTIVE_HIGH, + .name = "SLP_S5_DEASSERTED", + }, [X86_SLP_SUS_DEASSERTED] = { .gpio = GPIO_SLP_SUS_L, .flags = POWER_SIGNAL_ACTIVE_HIGH, |