payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / t400 / acpi / dock.asl
blobdce1d1a5a52d419c6749bea46eef0fa0bb6f84ee
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Scope (\_SB)
5         Device(DOCK)
6         {
7                 Name(_HID, "ACPI0003")
8                 Name(_UID, 0x00)
9                 Name(_PCL, Package() { \_SB } )
11                 Method(_DCK, 1, NotSerialized)
12                 {
13                         if (Arg0) {
14                            /* connect dock */
15                            \GP28 = 1
16                            \_SB.PCI0.LPCB.EC.DKR1 = 1
17                         } else {
18                            /* disconnect dock */
19                            \GP28 = 0
20                            \_SB.PCI0.LPCB.EC.DKR1 = 0
21                         }
22                         Local0 = Arg0 ^ \_SB.PCI0.LPCB.EC.DKR1
23                         Return (Local0)
24                 }
26                 Method(_STA, 0, NotSerialized)
27                 {
28                         Return (\_SB.PCI0.LPCB.EC.DKR1)
29                 }
30         }
33 Scope(\_SB.PCI0.LPCB.EC)
35         Method(_Q18, 0, NotSerialized)
36         {
37                 Notify(\_SB.DOCK, 3)
38         }
40         Method(_Q45, 0, NotSerialized)
41         {
42                 Notify(\_SB.DOCK, 3)
43         }
45         Method(_Q50, 0, NotSerialized)
46         {
47                 Notify(\_SB.DOCK, 3)
48         }
50         Method(_Q58, 0, NotSerialized)
51         {
52                 Notify(\_SB.DOCK, 0)
53         }
55         Method(_Q37, 0, NotSerialized)
56         {
57                 Notify(\_SB.DOCK, 0)
58         }