payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / x201 / acpi / dock.asl
blob311e620ab70dd0b18d5be34af62330fa55ccbf3f
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                            \_SB.PCI0.LPCB.EC.DKR2 = 1
18                            \_SB.PCI0.LPCB.EC.DKR3 = 1
19                         } else {
20                            /* disconnect dock */
21                            \GP28 = 0
22                            \_SB.PCI0.LPCB.EC.DKR1 = 0
23                            \_SB.PCI0.LPCB.EC.DKR2 = 0
24                            \_SB.PCI0.LPCB.EC.DKR3 = 0
25                         }
26                         Local0 = Arg0 ^ \_SB.PCI0.LPCB.EC.DKR1
27                         Return (Local0)
28                 }
30                 Method(_STA, 0, NotSerialized)
31                 {
32                         Return (\_SB.PCI0.LPCB.EC.DKR1)
33                 }
34         }
37 Scope(\_SB.PCI0.LPCB.EC)
39         Method(_Q18, 0, NotSerialized)
40         {
41                 Notify(\_SB.DOCK, 3)
42         }
44         Method(_Q45, 0, NotSerialized)
45         {
46                 Notify(\_SB.DOCK, 3)
47         }
49         Method(_Q50, 0, NotSerialized)
50         {
51                 Notify(\_SB.DOCK, 3)
52         }
54         Method(_Q58, 0, NotSerialized)
55         {
56                 Notify(\_SB.DOCK, 0)
57         }
59         Method(_Q37, 0, NotSerialized)
60         {
61                 Notify(\_SB.DOCK, 0)
62         }