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 IF30, 1, /* ITBT FW Version Bit30 */
16 INFR, 1, /* TBT NVM FW Ready */
17 Offset(0xEC), /* 0xEC, TBT TO PCIE Register */
18 TB2P, 32, /* TBT to PCIe */
19 P2TB, 32, /* PCIe to TBT */
20 Offset(0xFC), /* 0xFC, DMA RTD3 Force Power */
21 DD3E, 1, /* 0:0 DMA RTD3 Enable */
22 DFPE, 1, /* 1:1 DMA Force Power */
24 DMAD, 8 /* 31:24 DMA Active Delay */
27 Name (STAT, 0x1) /* Variable to save power state 1 - D0, 0 - D3C */
31 #if CONFIG(D3COLD_SUPPORT)
35 #endif // D3COLD_SUPPORT
39 * Get power resources that are dependent on this device for Operating System Power Management
40 * to put the device in the D0 device state
44 #if CONFIG(D3COLD_SUPPORT)
46 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT0 })
48 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT1 })
52 Return (Package() { \_SB.PCI0.TBT0 })
54 Return (Package() { \_SB.PCI0.TBT1 })
56 #endif // D3COLD_SUPPORT
61 #if CONFIG(D3COLD_SUPPORT)
63 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT0 })
65 Return (Package() { \_SB.PCI0.D3C, \_SB.PCI0.TBT1 })
69 Return (Package() { \_SB.PCI0.TBT0 })
71 Return (Package() { \_SB.PCI0.TBT1 })
73 #endif // D3COLD_SUPPORT
77 * RTD3 Exit Method to bring TBT controller out of RTD3 mode.
79 Method (D3CX, 0, Serialized)
81 DD3E = 0x00 /* Disable DMA RTD3 */
86 * RTD3 Entry method to enable TBT controller RTD3 mode.
88 Method (D3CE, 0, Serialized)
90 DD3E = 0x01 /* Enable DMA RTD3 */
95 * Variable to skip TCSS/TBT D3 cold; 1+: Skip D3CE, 0 - Enable D3CE
96 * TCSS D3 Cold and TBT RTD3 is only available when system power state is in S0.
102 /* If entering Sx (Arg1 > 1), need to skip TCSS D3Cold & TBT RTD3/D3Cold. */
108 Return (Package() { 0x6D, 4 })