diff options
author | Evan Green <evgreen@chromium.org> | 2021-12-01 09:43:07 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-02 00:23:30 +0000 |
commit | c6e513ee2985beb1fa536d34e6c633e63282e46c (patch) | |
tree | 11edeac1ddcc2384c7a6b7599ca44ae3a531b370 /power | |
parent | 4ec8abe94d98efaa7e610d23bdc2f5cf2bfebd8b (diff) | |
download | chrome-ec-c6e513ee2985beb1fa536d34e6c633e63282e46c.tar.gz |
power/icelake: Add SLP_S5 as a watched power signal
Add SLP_S5_SIGNAL_L as a power signal we start observing and reporting
changes on for alderlake. Note that without
CONFIG_HOSTCMD_ESPI_VW_SLP_S5, no software actually responds to changes
on this line. Additionally, without the above config switched on,
SLP_S5_SIGNAL_L defaults to SLP_S4_SIGNAL_L, so we're actually watching
VW_SLP_S4 and reporting it as SLP_S5_DEASSERTED. There's nothing
technically wrong with this (since nobody takes any action now on the
new signal anyway). But to keep things comprehensible I'll add a
dependency on the change that flips on VW_SLP_S5 support, where we'll
actually start watching, reporting on, and responding to VW_SLP_S5
under its correct power signal name.
BRANCH=None
BUG=b:204947672
TEST=hiberman hibernate --test-keys on volteer
Cq-Depend: chromium:3289944
Signed-off-by: Evan Green <evgreen@chromium.org>
Change-Id: I23191e2a422f1813c2a3d72614f2d7503aacde20
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3310528
Reviewed-by: Keith Short <keithshort@chromium.org>
Commit-Queue: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'power')
-rw-r--r-- | power/icelake.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/power/icelake.c b/power/icelake.c index 120df9f578..20fda53ef0 100644 --- a/power/icelake.c +++ b/power/icelake.c @@ -50,6 +50,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, |