summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ec/lenovo/h8/acpi/battery.asl36
-rw-r--r--src/mainboard/lenovo/t60/devicetree.cb1
-rw-r--r--src/mainboard/lenovo/x60/devicetree.cb1
3 files changed, 38 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)
+}
diff --git a/src/mainboard/lenovo/t60/devicetree.cb b/src/mainboard/lenovo/t60/devicetree.cb
index da1cb43b8a..5419d71e1a 100644
--- a/src/mainboard/lenovo/t60/devicetree.cb
+++ b/src/mainboard/lenovo/t60/devicetree.cb
@@ -130,6 +130,7 @@ chip northbridge/intel/i945
register "event4_enable" = "0xf4"
register "event5_enable" = "0x3c"
register "event6_enable" = "0x80"
+ register "eventc_enable" = "0x3c"
register "wlan_enable" = "0x01"
register "trackpoint_enable" = "0x03"
diff --git a/src/mainboard/lenovo/x60/devicetree.cb b/src/mainboard/lenovo/x60/devicetree.cb
index 01a42eb816..b708dce61d 100644
--- a/src/mainboard/lenovo/x60/devicetree.cb
+++ b/src/mainboard/lenovo/x60/devicetree.cb
@@ -107,6 +107,7 @@ chip northbridge/intel/i945
register "event3_enable" = "0xff"
register "event4_enable" = "0xf4"
register "event5_enable" = "0x3c"
+ register "eventc_enable" = "0x3c"
register "wlan_enable" = "0x01"
register "trackpoint_enable" = "0x03"