summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKrishna Prasad Bhat <krishna.p.bhat.d@intel.com>2022-01-07 16:44:51 +0530
committerFelix Held <felix-coreboot@felixheld.de>2022-01-18 16:18:12 +0000
commitba9183245fb42232132ddb5df804b8b8b5e76b82 (patch)
tree3bb7190066d4e57a656853ad32765f76e5244f16 /src
parentdbe92ead87f045aa33c4811be3ac77f17ba68413 (diff)
mb/intel/adlrvp: Add wake events for AC connect/disconnect
Enable S3/S0ix wake events for AC connect/disconnect on Alder Lake RVP. BUG=None BRANCH=None TEST=Verify board wakes from S0ix on AC connect/disconnect. Change-Id: Iaf92821fd69a59624e58cb8af3896e2b6998723f Signed-off-by: Krishna Prasad Bhat <krishna.p.bhat.d@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60897 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/intel/adlrvp/include/baseboard/ec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/intel/adlrvp/include/baseboard/ec.h b/src/mainboard/intel/adlrvp/include/baseboard/ec.h
index c01829936d..6a5c72ceeb 100644
--- a/src/mainboard/intel/adlrvp/include/baseboard/ec.h
+++ b/src/mainboard/intel/adlrvp/include/baseboard/ec.h
@@ -33,11 +33,13 @@
EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON))
/*
- * EC can wake from S3 with lid or power button or key press or
+ * EC can wake from S3 with lid or power button or key press or AC connect/disconnect or
* mode change event.
*/
#define MAINBOARD_EC_S3_WAKE_EVENTS \
(MAINBOARD_EC_S5_WAKE_EVENTS |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED) |\
EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE))