summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@google.com>2019-03-27 19:26:12 -0700
committerDuncan Laurie <dlaurie@chromium.org>2019-03-28 19:18:05 +0000
commit0f57a2bb9779647905c00fc46f5b5eddc8ee3c5b (patch)
tree588668467f5949a56c5f8d39fa2365504ca261d7
parent242c9d9f2420ef023a816275b23ce954cd71f051 (diff)
downloadcoreboot-0f57a2bb9779647905c00fc46f5b5eddc8ee3c5b.tar.xz
ec/google/wilco: Add ACPI _BIX method for battery
I added a method to fill out the _BIX package structure but never hooked it up to the expected _BIX method that the OS uses. This change adds _BIX method and uses the existing method to fill it out. It also adds ^ before the _UID in _BIF to match _BIX as the _UID is one level above the method. Change-Id: I0de91369b6780fd9432990732c1078a73f6a3419 Signed-off-by: Duncan Laurie <dlaurie@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/32093 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/ec/google/wilco/acpi/battery.asl16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ec/google/wilco/acpi/battery.asl b/src/ec/google/wilco/acpi/battery.asl
index dd1f69a9d0..e03d3dd6b1 100644
--- a/src/ec/google/wilco/acpi/battery.asl
+++ b/src/ec/google/wilco/acpi/battery.asl
@@ -274,17 +274,22 @@ Device (BAT0)
Method (_STA, 0, Serialized)
{
- Return (ESTA (_UID))
+ Return (ESTA (^_UID))
}
Method (_BST, 0, Serialized)
{
- Return (EBST (_UID, PBST))
+ Return (EBST (^_UID, PBST))
}
Method (_BIF, 0, Serialized)
{
- Return (EBIF (_UID, PBIF))
+ Return (EBIF (^_UID, PBIF))
+ }
+
+ Method (_BIX, 0, Serialized)
+ {
+ Return (EBIX (^_UID, PBIX))
}
}
@@ -354,4 +359,9 @@ Device (BAT1)
{
Return (EBIF (^_UID, PBIF))
}
+
+ Method (_BIX, 0, Serialized)
+ {
+ Return (EBIX (^_UID, PBIX))
+ }
}