From 0f57a2bb9779647905c00fc46f5b5eddc8ee3c5b Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Wed, 27 Mar 2019 19:26:12 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32093 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel --- src/ec/google/wilco/acpi/battery.asl | 16 +++++++++++++--- 1 file 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)) + } } -- cgit v1.2.3