1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 OperationRegion (DPME, SystemMemory, BASE(_ADR), 0x100)
4 Field (DPME, AnyAcc, NoLock, Preserve)
7 Offset(0x84), /* 0x84, DMA CFG PM CAP */
8 PMST, 2, /* 1:0, PM_STATE */
10 PMEE, 1, /* 8, PME_EN */
12 PMES, 1, /* 15, PME_STATUS */
13 Offset(0xC8), /* 0xC8, TBT NVM FW Revision */
15 INFR, 1, /* TBT NVM FW Ready */
16 Offset(0xEC), /* 0xEC, TBT TO PCIE Register */
17 TB2P, 32, /* TBT to PCIe */
18 P2TB, 32, /* PCIe to TBT */
19 Offset(0xFC), /* 0xFC, DMA RTD3 Force Power */
20 DD3E, 1, /* 0:0 DMA RTD3 Enable */
21 DFPE, 1, /* 1:1 DMA Force Power */
23 DMAD, 8 /* 31:24 DMA Active Delay */
26 Name (STAT, 0x1) /* Variable to save power state 1 - D0, 0 - D3C */
30 #if CONFIG(D3COLD_SUPPORT)
34 #endif // D3COLD_SUPPORT
38 * Get power resources that are dependent on this device for Operating System Power Management
39 * to put the device in the D0 device state
43 #if CONFIG(D3COLD_SUPPORT)
45 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT0 })
47 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT1 })
51 Return (Package() { \_SB.PCI0.TBT0 })
53 Return (Package() { \_SB.PCI0.TBT1 })
55 #endif // D3COLD_SUPPORT
60 #if CONFIG(D3COLD_SUPPORT)
62 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT0 })
64 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT1 })
68 Return (Package() { \_SB.PCI0.TBT0 })
70 Return (Package() { \_SB.PCI0.TBT1 })
72 #endif // D3COLD_SUPPORT
76 * RTD3 Exit Method to bring TBT controller out of RTD3 mode.
78 Method (D3CX, 0, Serialized)
80 DD3E = 0x00 /* Disable DMA RTD3 */
85 * RTD3 Entry method to enable TBT controller RTD3 mode.
87 Method (D3CE, 0, Serialized)
89 DD3E = 0x01 /* Enable DMA RTD3 */
94 * Variable to skip TCSS/TBT D3 cold; 1+: Skip D3CE, 0 - Enable D3CE
95 * TCSS D3 Cold and TBT RTD3 is only available when system power state is in S0.
101 /* If entering Sx (Arg1 > 1), need to skip TCSS D3Cold & TBT RTD3/D3Cold. */
107 Return (Package() { 0x6D, 4 })