mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / lenovo / x60 / acpi / dock.asl
blob5fd69781fba5316736678d697a07d139b5370847
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include "smi.h"
5 Scope (\_SB)
7         OperationRegion (DLPC, SystemIO, 0x164c, 1)
8         Field(DLPC, ByteAcc, NoLock, Preserve)
9         {
10                     ,   3,
11                 DSTA,   1,
12         }
14         Device(DOCK)
15         {
16                 Name(_HID, "ACPI0003")
17                 Name(_UID, 0x00)
18                 Name(_PCL, Package() { \_SB } )
20                 Method(_DCK, 1, NotSerialized)
21                 {
22                         if (Arg0) {
23                            /* connect dock */
24                            TRAP(SMI_DOCK_CONNECT)
25                         } else {
26                            /* disconnect dock */
27                            TRAP(SMI_DOCK_DISCONNECT)
28                         }
30                         Local0 = Arg0 ^ DSTA
31                         Return (Local0)
32                 }
34                 Method(_STA, 0, NotSerialized)
35                 {
36                         Return (DSTA)
37                 }
38         }
41 Scope(\_SB.PCI0.LPCB.EC)
43         Method(_Q18, 0, NotSerialized)
44         {
45                Notify(\_SB.DOCK, 3)
46         }
48         Method(_Q50, 0, NotSerialized)
49         {
50                Notify(\_SB.DOCK, 3)
51         }
53         Method(_Q58, 0, NotSerialized)
54         {
55                Notify(\_SB.DOCK, 0)
56         }