1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Intel ICH USB support */
5 // USB Controller 0:1d.0
11 OperationRegion(U01P, PCI_Config, 0, 256)
12 Field(U01P, DWordAcc, NoLock, Preserve)
15 U1WE, 2 // USB Wake Enable
18 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
20 Method (_PSW, 1) // Power State Wake method
22 // USB Controller can wake OS from Sleep State
30 // Leave USB ports on for to allow Wake from USB
32 Method(_S3D,0) // Highest D State in S3 State
37 Method(_S4D,0) // Highest D State in S4 State
44 // USB Controller 0:1d.1
48 Name(_ADR, 0x001d0001)
50 OperationRegion(U02P, PCI_Config, 0, 256)
51 Field(U02P, DWordAcc, NoLock, Preserve)
54 U2WE, 2 // USB Wake Enable
57 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
59 Method (_PSW, 1) // Power State Wake method
61 // USB Controller can wake OS from Sleep State
69 // Leave USB ports on for to allow Wake from USB
71 Method(_S3D,0) // Highest D State in S3 State
76 Method(_S4D,0) // Highest D State in S4 State
84 // USB Controller 0:1d.2
88 Name(_ADR, 0x001d0002)
90 OperationRegion(U03P, PCI_Config, 0, 256)
91 Field(U03P, DWordAcc, NoLock, Preserve)
94 U3WE, 2 // USB Wake Enable
97 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
99 Method (_PSW, 1) // Power State Wake method
101 // USB Controller can wake OS from Sleep State
109 // Leave USB ports on for to allow Wake from USB
111 Method(_S3D,0) // Highest D State in S3 State
116 Method(_S4D,0) // Highest D State in S4 State
124 // EHCI Controller 0:1d.7
128 Name(_ADR, 0x001d0007)
130 Name (_PRW, Package(){ 13, 4 }) // Power Resources for Wake
132 // Leave USB ports on for to allow Wake from USB
134 Method(_S3D,0) // Highest D State in S3 State
139 Method(_S4D,0) // Highest D State in S4 State
146 Name (_ADR, 0x00000000)
148 // How many are there?
149 Device (PRT1) { Name (_ADR, 1) } // USB Port 0
150 Device (PRT2) { Name (_ADR, 2) } // USB Port 1
151 Device (PRT3) { Name (_ADR, 3) } // USB Port 2
152 Device (PRT4) { Name (_ADR, 4) } // USB Port 3
153 Device (PRT5) { Name (_ADR, 5) } // USB Port 4
154 Device (PRT6) { Name (_ADR, 6) } // USB Port 5
159 // USB Controller 0:1a.0
163 Name(_ADR, 0x001a0000)
165 OperationRegion(U01P, PCI_Config, 0, 256)
166 Field(U01P, DWordAcc, NoLock, Preserve)
169 U1WE, 2 // USB Wake Enable
172 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
174 Method (_PSW, 1) // Power State Wake method
176 // USB Controller can wake OS from Sleep State
184 // Leave USB ports on for to allow Wake from USB
186 Method(_S3D,0) // Highest D State in S3 State
191 Method(_S4D,0) // Highest D State in S4 State
198 // USB Controller 0:1a.1
202 Name(_ADR, 0x001a0001)
204 OperationRegion(U02P, PCI_Config, 0, 256)
205 Field(U02P, DWordAcc, NoLock, Preserve)
208 U2WE, 2 // USB Wake Enable
211 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
213 Method (_PSW, 1) // Power State Wake method
215 // USB Controller can wake OS from Sleep State
223 // Leave USB ports on for to allow Wake from USB
225 Method(_S3D,0) // Highest D State in S3 State
230 Method(_S4D,0) // Highest D State in S4 State
238 // USB Controller 0:1a.2
242 Name(_ADR, 0x001a0002)
244 OperationRegion(U03P, PCI_Config, 0, 256)
245 Field(U03P, DWordAcc, NoLock, Preserve)
248 U3WE, 2 // USB Wake Enable
251 Name (_PRW, Package(){ 3, 4 }) // Power Resources for Wake
253 Method (_PSW, 1) // Power State Wake method
255 // USB Controller can wake OS from Sleep State
263 // Leave USB ports on for to allow Wake from USB
265 Method(_S3D,0) // Highest D State in S3 State
270 Method(_S4D,0) // Highest D State in S4 State
278 // EHCI Controller 0:1a.7
282 Name(_ADR, 0x001a0007)
284 Name (_PRW, Package(){ 13, 4 }) // Power Resources for Wake
286 // Leave USB ports on for to allow Wake from USB
288 Method(_S3D,0) // Highest D State in S3 State
293 Method(_S4D,0) // Highest D State in S4 State
300 Name (_ADR, 0x00000000)
302 // How many are there?
303 Device (PRT1) { Name (_ADR, 1) } // USB Port 0
304 Device (PRT2) { Name (_ADR, 2) } // USB Port 1
305 Device (PRT3) { Name (_ADR, 3) } // USB Port 2
306 Device (PRT4) { Name (_ADR, 4) } // USB Port 3
307 Device (PRT5) { Name (_ADR, 5) } // USB Port 4
308 Device (PRT6) { Name (_ADR, 6) } // USB Port 5