summaryrefslogtreecommitdiffstats
path: root/src/ec/google/wilco/acpi/event.asl
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-02-21 17:38:03 -0800
committerPatrick Georgi <pgeorgi@google.com>2019-02-25 11:17:23 +0000
commita213ed659a5a535875166a8a1d1f631dd6c606f7 (patch)
tree05d2e377155221cf17d1c7ac61141228030e3125 /src/ec/google/wilco/acpi/event.asl
parent47b9e457fa7f80843ee68a6a2daf4115445465c5 (diff)
downloadcoreboot-a213ed659a5a535875166a8a1d1f631dd6c606f7.tar.gz
coreboot-a213ed659a5a535875166a8a1d1f631dd6c606f7.tar.bz2
coreboot-a213ed659a5a535875166a8a1d1f631dd6c606f7.zip
ec/google/wilco: Fix ACPI power status events
This change fixes the power status events for AC and battery events from the EC. The register that was being used is not returning the expected information. BUG=b:125472740 TEST=enable ACPI debug in the kernel and verify that AC and battery insert/remove are detected properly. Change-Id: I15f71fcf0ca6aa9438e951865787c9fc273792d8 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/31560 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/ec/google/wilco/acpi/event.asl')
-rw-r--r--src/ec/google/wilco/acpi/event.asl10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ec/google/wilco/acpi/event.asl b/src/ec/google/wilco/acpi/event.asl
index 24cf26863616..fab4fc46c305 100644
--- a/src/ec/google/wilco/acpi/event.asl
+++ b/src/ec/google/wilco/acpi/event.asl
@@ -19,17 +19,17 @@ Name (ECPR, 0)
Method (ECQP, 0, Serialized)
{
- Local0 = R (APWR)
+ Local0 = R (PWSR)
Local1 = Local0 ^ ECPR
ECPR = Local0
- If (EBIT (APAC, Local1)) {
+ If (EBIT (ACEX, Local1)) {
Printf ("AC Power Status Changed")
Notify (AC, 0x80)
}
- If (EBIT (APB1, Local1)) {
- If (EBIT (APB1, Local0)) {
+ If (EBIT (BTEX, Local1)) {
+ If (EBIT (BTEX, Local0)) {
Printf ("BAT0 Inserted")
Notify (BAT0, 0x81)
} Else {
@@ -39,7 +39,7 @@ Method (ECQP, 0, Serialized)
}
}
- If (EBIT (APC1, Local1)) {
+ If (EBIT (BTSC, Local1)) {
Printf ("BAT0 Status Change")
Notify (BAT0, 0x80)
}