diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2017-06-29 23:52:17 -0700 |
---|---|---|
committer | Duncan Laurie <dlaurie@chromium.org> | 2017-07-01 02:48:50 +0000 |
commit | 7378a1792a986ca5137da9bd0868bbc1b496839d (patch) | |
tree | 344b11bd9ef1f7bf6e8d73e07b6bc581560f49b3 /src/ec/google/chromeec/smm.h | |
parent | b14aefece3079cff4af339c8f5a47d982c7630ea (diff) | |
download | coreboot-7378a1792a986ca5137da9bd0868bbc1b496839d.tar.xz |
ec/google/chromeec: Add support for EC device events
Add support for the new EC device event interface which is used to
report events from devices that are connected behind the EC.
This can be used to differentiate wake sources from the EC in the case
that the EC has the wake pins from various devices.
This can be used in case the AP is unable to directly wake from the
device itself, for example when using the Deep S3 state on Intel
platforms only a few pins can directly wake the AP.
BUG=b:30624430
TEST=build google/* boards that use chrome EC. Feature is used and
tested further in a subsequent commit.
Change-Id: I5126c6d6ffb6b0ef6e8db8dcd5aec62db925a371
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/20426
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/ec/google/chromeec/smm.h')
-rw-r--r-- | src/ec/google/chromeec/smm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ec/google/chromeec/smm.h b/src/ec/google/chromeec/smm.h index 03d6e0044f..8265cddcfd 100644 --- a/src/ec/google/chromeec/smm.h +++ b/src/ec/google/chromeec/smm.h @@ -28,6 +28,13 @@ void chromeec_smi_process_events(void); void chromeec_smi_sleep(int slp_type, uint32_t s3_mask, uint32_t s5_mask); /* + * Set device event masks according to sleep type, + * and clear any pending device events. + */ +void chromeec_smi_device_event_sleep(int slp_type, uint32_t s3_mask, + uint32_t s5_mask); + +/* * Provided the APMC command do the following while clearing pending events. * APM_CNT_ACPI_ENABLE: clear SMI mask. set SCI mask. * APM_CNT_ACPI_DISABLE: clear SCI mask. set SMI mask. |