summaryrefslogtreecommitdiff
path: root/src/mainboard/google/octopus
diff options
context:
space:
mode:
authorJames Chao <james_chao@asus.corp-partner.google.com>2021-07-15 22:34:05 +0800
committerPatrick Georgi <pgeorgi@google.com>2021-07-21 16:22:43 +0000
commit430f0b44554d1f48faa817b6316c30dca2a4f18e (patch)
treed316a81fed2f11e1bb4c7ab650d7827945fc706c /src/mainboard/google/octopus
parent0f88f6ff92e5913064252af3336d959edacba7ed (diff)
mb/google/octopus/variants/ampton: Resume from suspend on critical battery
This patch makes Ampton EC wake up AP from s0ix when the state of charge drops to 2%. Demonstrated as follows: 1. Boot Ampton. 2. Run powerd_dbus_suspend. 3. On EC, run battfake 2. 4. System resumes. BUG=b:189540432 BRANCH=Octopus TEST=Verified on Ampton. Change-Id: I98d8e6ea185e8782ad675d4668678b341ca5d350 Signed-off-by: James Chao <james_chao@asus.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56341 Reviewed-by: Marco Chen <marcochen@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/octopus')
-rw-r--r--src/mainboard/google/octopus/variants/ampton/include/variant/ec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/variants/ampton/include/variant/ec.h b/src/mainboard/google/octopus/variants/ampton/include/variant/ec.h
index 056eef8379..d75938da72 100644
--- a/src/mainboard/google/octopus/variants/ampton/include/variant/ec.h
+++ b/src/mainboard/google/octopus/variants/ampton/include/variant/ec.h
@@ -8,4 +8,9 @@
/* Enable EC sync interrupt, EC_SYNC_IRQ is defined in variant/gpio.h */
#define EC_ENABLE_SYNC_IRQ
+#undef MAINBOARD_EC_S0IX_WAKE_EVENTS
+#define MAINBOARD_EC_S0IX_WAKE_EVENTS \
+ (MAINBOARD_EC_S3_WAKE_EVENTS |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN))
+
#endif