summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/x60/acpi/gpe.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lenovo/x60/acpi/gpe.asl')
-rw-r--r--src/mainboard/lenovo/x60/acpi/gpe.asl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/x60/acpi/gpe.asl b/src/mainboard/lenovo/x60/acpi/gpe.asl
index 1c5d1bdfd8..64e8e31e66 100644
--- a/src/mainboard/lenovo/x60/acpi/gpe.asl
+++ b/src/mainboard/lenovo/x60/acpi/gpe.asl
@@ -1,3 +1,4 @@
+#include "smi.h"
Scope (\_GPE)
{
Method(_L18, 0, NotSerialized)
@@ -5,4 +6,16 @@ Scope (\_GPE)
/* Read EC register to clear wake status */
Store(\_SB.PCI0.LPCB.EC.WAKE, Local0)
}
+
+ /* SLICE_ON_3M GPE (Dock status) */
+ Method(_L1D, 0, NotSerialized)
+ {
+ if (GP13) {
+ Or(GIV1, 0x20, GIV1)
+ Notify(\_SB.PCI0.LPCB.EC.DOCK, 3)
+ } else {
+ And(GIV1, 0xdf, GIV1)
+ Notify(\_SB.PCI0.LPCB.EC.DOCK, 0)
+ }
+ }
}