Thinkpad: Enable Battery events
[coreboot.git] / src / ec / lenovo / h8 / acpi / battery.asl
index 716858160413c8d7bf2ea0cd6b7286427ebd8169..7dd49fe0fd35321dc08ed1fe3b50fd848268b472 100644 (file)
@@ -294,3 +294,39 @@ Device (BAT1)
                }
        }
 }
+
+/* Battery 0 critical */
+Method(_Q24, 0, NotSerialized)
+{
+       Notify(BAT0, 0x80)
+}
+
+/* Battery 1 critical */
+Method(_Q25, 0, NotSerialized)
+{
+       Notify(BAT1, 0x80)
+}
+
+/* Battery 0 attach/detach */
+Method(_Q4A, 0, NotSerialized)
+{
+       Notify(BAT0, 0x81)
+}
+
+/* Battery 0 state change */
+Method(_Q4B, 0, NotSerialized)
+{
+       Notify(BAT0, 0x80)
+}
+
+/* Battery 1 attach/detach */
+Method(_Q4C, 0, NotSerialized)
+{
+       Notify(BAT1, 0x81)
+}
+
+/* Battery 1 state change */
+Method(_Q4D, 0, NotSerialized)
+{
+       Notify(BAT1, 0x80)
+}