aboutsummaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi/thinkpad.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo/h8/acpi/thinkpad.asl')
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index a0812e5d48..e67bc8f65f 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -20,6 +20,7 @@ Device (HKEY)
External (\HBDC, IntObj)
External (\HWAN, IntObj)
External (\HKBL, IntObj)
+ External (\HUWB, IntObj)
Name (_HID, EisaId ("IBM0068"))
@@ -259,4 +260,35 @@ Device (HKEY)
Store (And(Arg0, 1), \_SB.PCI0.LPCB.EC.WWEB)
}
}
+
+ /*
+ * Returns the current state:
+ * Bit 0: UWB HW present
+ * Bit 1: UWB radio enabled
+ */
+ Method (GUWB, 0)
+ {
+ If (HUWB) {
+ Store (One, Local0)
+ If(\_SB.PCI0.LPCB.EC.UWBE)
+ {
+ Or(Local0, 2, Local0)
+ }
+ Return (Local0)
+ } Else {
+ Return (0)
+ }
+ }
+
+ /*
+ * Set the current state:
+ * Bit 1: UWB radio enabled
+ */
+ Method (SUWB, 1)
+ {
+ If (HUWB) {
+ ShiftRight (And(Arg0, 2), 1, Local0)
+ Store (Local0, \_SB.PCI0.LPCB.EC.UWBE)
+ }
+ }
}