summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-04-28 09:29:06 +0000
committerSven Schnelle <svens@stackframe.org>2011-04-28 09:29:06 +0000
commit95ebe66f7f5fef64d363cb48e5a441ad505353d1 (patch)
tree4df4afb19b6337a158b0be13c658f7450dee3398 /src/ec/lenovo/h8/acpi
parent50270b822fcfe0e58deb18210001a92661e52401 (diff)
downloadcoreboot-95ebe66f7f5fef64d363cb48e5a441ad505353d1.tar.xz
Thinkpad: Enable Battery events
Enable the following events for battery objects on Thinkpad X60/T60: 24: BAT0 critical 25: BAT1 critical 4A: BAT0 present 4B: BAT0 state change 4C: BAT1 present 4D: BAT1 state change Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Sven Schnelle <svens@stackframe.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6549 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/ec/lenovo/h8/acpi')
-rw-r--r--src/ec/lenovo/h8/acpi/battery.asl36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/acpi/battery.asl b/src/ec/lenovo/h8/acpi/battery.asl
index 7168581604..7dd49fe0fd 100644
--- a/src/ec/lenovo/h8/acpi/battery.asl
+++ b/src/ec/lenovo/h8/acpi/battery.asl
@@ -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)
+}