X60: use EC events 0x50/0x58 instead of GPIO GPE for Docking/Undocking
[coreboot.git] / src / mainboard / lenovo / x60 / acpi / dock.asl
index d393f44f32c9af843cba5ad6076ded397f58b24f..136f8884b734aadbae315285fcb12b82adb88849 100644 (file)
@@ -39,7 +39,6 @@ Scope (\_SB)
                Method(_DCK, 1, NotSerialized)
                {
                        if (Arg0) {
-                          Sleep(250)
                           /* connect dock */
                           TRAP(SMI_DOCK_CONNECT)
                        } else {
@@ -53,7 +52,7 @@ Scope (\_SB)
 
                Method(_STA, 0, NotSerialized)
                {
-               Return (DSTA)
+                       Return (DSTA)
                }
        }
 }
@@ -64,4 +63,15 @@ Scope(\_SB.PCI0.LPCB.EC)
        {
               Notify(\_SB.DOCK, 3)
        }
+
+       Method(_Q50, 0, NotSerialized)
+       {
+              Notify(\_SB.DOCK, 3)
+       }
+
+       Method(_Q58, 0, NotSerialized)
+       {
+              Notify(\_SB.DOCK, 0)
+       }
+
 }