From c2c4a002ac3c90b9a0e99340835b5a42205bad9f Mon Sep 17 00:00:00 2001 From: madhusudanarao amara Date: Sun, 23 May 2021 19:37:49 +0530 Subject: mainboard/google/brya: Add S3/S0ix wake events AC connect/disconnect Enabling AC connect/disconnect wake events in brya to meet Chrome OS wake requirements. These changes are similar to Volteer and Shadowmountain. BUG=none BRANCH=None TEST=manual tested DUT wakes for AC connect/disconnect in S0ix Change-Id: I14b3efd429e3aa701af534f150baf35fcdeb9f35 Signed-off-by: madhusudanarao amara Reviewed-on: https://review.coreboot.org/c/coreboot/+/54855 Reviewed-by: Maulik V Vaghela Reviewed-by: Sooraj Govindan Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- .../google/brya/variants/baseboard/include/baseboard/ec.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/mainboard/google/brya') diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/ec.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/ec.h index d01b450cdb..34297bfb64 100644 --- a/src/mainboard/google/brya/variants/baseboard/include/baseboard/ec.h +++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/ec.h @@ -33,13 +33,16 @@ /* * EC can wake from S3/S0ix with: * 1. Lid open - * 2. Power button - * 3. Key press - * 4. Mode change + * 2. AC Connect/Disconnect + * 3. Power button + * 4. Key press + * 5. Mode change */ #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_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)) #define MAINBOARD_EC_S0IX_WAKE_EVENTS (MAINBOARD_EC_S3_WAKE_EVENTS) /* Log EC wake events plus EC shutdown events */ -- cgit v1.2.3