summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/eve/ec.h
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2017-06-29 23:57:13 -0700
committerDuncan Laurie <dlaurie@chromium.org>2017-07-01 02:49:01 +0000
commitaf81a9132a59b5c3abbb3e56574398fe236ba6f9 (patch)
treecfeee5993a4c5822c8b410b2536fac3d4bf54f26 /src/mainboard/google/eve/ec.h
parent7378a1792a986ca5137da9bd0868bbc1b496839d (diff)
downloadcoreboot-af81a9132a59b5c3abbb3e56574398fe236ba6f9.tar.gz
coreboot-af81a9132a59b5c3abbb3e56574398fe236ba6f9.tar.bz2
coreboot-af81a9132a59b5c3abbb3e56574398fe236ba6f9.zip
mb/google/eve: Implement EC device events for S3 wake
Add support for waking from and logging device events that originate in the Embedded Controller. As this device uses Deep S3 it relies on the EC to wake the AP from the trackpad and DSP wake sources. BUG=b:30624430 TEST=manual testing on Eve: wake from Deep S3 via trackpad and DSP and verify the event log contains the expected device event. Change-Id: I0d6a9c5bfd4cea85e13446ffaa6fe3dab0db96a2 Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://review.coreboot.org/20428 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/eve/ec.h')
-rw-r--r--src/mainboard/google/eve/ec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/eve/ec.h b/src/mainboard/google/eve/ec.h
index fa0dc21f7561..81d591cb403f 100644
--- a/src/mainboard/google/eve/ec.h
+++ b/src/mainboard/google/eve/ec.h
@@ -48,6 +48,7 @@
/* EC can wake from S3 with lid or power button or key press */
#define MAINBOARD_EC_S3_WAKE_EVENTS \
(MAINBOARD_EC_S5_WAKE_EVENTS |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_DEVICE) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED))
/* Log EC wake events plus EC shutdown events */
@@ -56,6 +57,11 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_PANIC))
+/* EC device events to enable and log in S3 */
+#define MAINBOARD_EC_S3_DEVICE_EVENTS \
+ (EC_DEVICE_EVENT_MASK(EC_DEVICE_EVENT_TRACKPAD) |\
+ EC_DEVICE_EVENT_MASK(EC_DEVICE_EVENT_DSP))
+
/*
* ACPI related definitions for ASL code.
*/