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>
This commit is contained in:
parent
242c9d9f24
commit
0f57a2bb97
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue