diff options
author | Marshall Dawson <marshalldawson3rd@gmail.com> | 2018-04-12 16:05:12 -0600 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-04-16 08:35:33 +0000 |
commit | edf2f59b1d93a1bc9161a67d3c00a9a05fa8519a (patch) | |
tree | 7fd0e93d0c2baafb98e1c38081624dbdc49a4fee /src/mainboard/google/kahlee/variants/baseboard | |
parent | 1b92474412f70229992f678a60da67131dd65c6f (diff) |
google/kahlee: Resume on AC insertion
The EC should wake the system from S3 when the AC connector is plugged.
BUG=b:77602394
TEST=verify resume on insert with Grunt
Change-Id: I4bcaef2fe75283aaa6260b5b9efd408ff4b05f4c
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-on: https://review.coreboot.org/25647
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/google/kahlee/variants/baseboard')
-rw-r--r-- | src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h index e93c2dd36a..c915ca77e0 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h +++ b/src/mainboard/google/kahlee/variants/baseboard/include/baseboard/ec.h @@ -44,10 +44,11 @@ (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\ EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) -/* EC can wake from S3 with lid or power button or key press */ +/* EC can wake from S3 with lid, power button, key press, or AC connect */ #define MAINBOARD_EC_S3_WAKE_EVENTS \ (MAINBOARD_EC_S5_WAKE_EVENTS |\ - EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED)) + EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED) |\ + EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED)) /* Log EC wake events plus EC shutdown events */ #define MAINBOARD_EC_LOG_EVENTS \ |