3aa961530283d04ef36f000132d8641bce185f72
[coreboot.git] / src / mainboard / lenovo / x60 / acpi / gpe.asl
1 #include "smi.h"
2 Scope (\_GPE)
3 {
4         Method(_L18, 0, NotSerialized)
5         {
6                 /* Read EC register to clear wake status */
7                 Store(\_SB.PCI0.LPCB.EC.WAKE, Local0)
8         }
9
10        /* SLICE_ON_3M GPE (Dock status) */
11        Method(_L1D, 0, NotSerialized)
12        {
13                if (GP13) {
14                        Or(GIV1, 0x20, GIV1)
15                        Notify(\_SB.DOCK, 3)
16                } else {
17                        And(GIV1, 0xdf, GIV1)
18                        Notify(\_SB.DOCK, 0)
19                }
20         }
21 }