James Chao has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/56341 )
Change subject: Ampton: Resume from suspend on critical battery ......................................................................
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 --- M src/mainboard/google/octopus/variants/ampton/include/variant/ec.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/41/56341/1
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 056eef8..d75938d 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