]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchEhci.asl
c058cd0c3ec8788fc80ffb66f3cafeb3db2b12d5
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / PchEhci.asl
1 /***************************************************************************************;
2 ;* *;
3 ;* *;
4 ;* Intel Corporation - ACPI Reference Code for the Baytrail *;
5 ;* Family of Customer Reference Boards. *;
6 ;* *;
7 ;* *;
8 ;* Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved *;
9 ;* *;
10 ;* ThSPDX-License-Identifier: BSD-2-Clause-Patent
11 ;* *;
12 ;* *;
13 ;* *;
14 ;***************************************************************************************/
15
16 OperationRegion(PWKE,PCI_Config,0x62,0x04)
17
18 Field(PWKE,DWordAcc,NoLock,Preserve)
19 {
20 , 1,
21 PWUC, 8 // Port Wake Up Capability Mask
22 }
23
24 Method(_PSW,1)
25 {
26 If(Arg0)
27 {
28 Store(Ones,PWUC)
29 }
30 Else
31 {
32 Store(0,PWUC)
33 }
34 }
35
36 // Leaves the USB ports on in S3/S4 to allow
37 // the ability to Wake from USB. Therefore, define
38 // the below control methods to state D2 entry during
39 // the given S-State.
40
41 Method(_S3D,0)
42 {
43 Return(2)
44 }
45
46 Method(_S4D,0)
47 {
48 Return(2)
49 }
50
51 Device(HUBN)
52 {
53 Name(_ADR, Zero)
54 Device(PR01)
55 {
56 Name(_ADR, One)
57
58 //
59 // There will have "Generic USB Hub" existed at Port 1 of each EHCI controller
60 // in Windows "Device Manager" while RMH is enabled, so need to add _UPC
61 // and _PLD to report OS that it's not user visible to pass WHQL: Single Computer
62 // Display Object test in Win7
63 //
64 Name(_UPC, Package()
65 {
66 0xFF, // Port is connectable
67 0x00, // Connector type - Type "A"
68 0x00000000, // Reserved 0 - must be zero
69 0x00000000
70 }) // Reserved 1 - must be zero
71
72 Name(_PLD, Package()
73 {
74 Buffer (0x10)
75 {
76 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
77 0x00, 0x00, 0x00, 0x00,
78 0x30, 0x1C, 0x00, 0x00, // Panel Unknown, Shape Unknown
79 0x00, 0x00, 0x00, 0x00
80 }
81 })
82
83 Device(PR11)
84 {
85 Name(_ADR, One)
86 Name(_UPC, Package()
87 {
88 0xFF, // Port is connectable
89 0xFF, // Proprietary connector
90 0x00000000, // Reserved 0 - must be zero
91 0x00000000
92 }) // Reserved 1 - must be zero
93 Name(_PLD, Package()
94 {
95 Buffer (0x10)
96 {
97 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
98 0x00, 0x00, 0x00, 0x00,
99 0xE1, 0x1C, 0x00, 0x00, // Front Panel, Vertical Upper, Horz. Left, Shape Unknown
100 0x00, 0x00, 0x00, 0x00
101 }
102 })
103 }
104
105 Device(PR12)
106 {
107 Name(_ADR, 0x02)
108 Name(_UPC, Package()
109 {
110 0xFF, // Port is connectable
111 0xFF, // Proprietary connector
112 0x00000000, // Reserved 0 - must be zero
113 0x00000000
114 }) // Reserved 1 - must be zero
115 Name(_PLD, Package()
116 {
117 Buffer (0x10)
118 {
119 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
120 0x00, 0x00, 0x00, 0x00,
121 0xE1, 0x1D, 0x00, 0x00, // Front Panel, Vertical Center, Horz. Left, Shape Unknown
122 0x00, 0x00, 0x00, 0x00
123 }
124 })
125 }
126
127 Device(PR13)
128 {
129 Name(_ADR, 0x03)
130 Name(_UPC, Package()
131 {
132 0xFF, // Port is connectable
133 0xFF, // Proprietary connector
134 0x00000000, // Reserved 0 - must be zero
135 0x00000000
136 }) // Reserved 1 - must be zero
137 Name(_PLD, Package()
138 {
139 Buffer (0x10)
140 {
141 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
142 0x00, 0x00, 0x00, 0x00,
143 0xE1, 0x1D, 0x00, 0x00, // Front Panel, Vertical Center, Horz. Left, Shape Unknown
144 0x00, 0x00, 0x00, 0x00
145 }
146 })
147 }
148
149 Device(PR14)
150 {
151 Name(_ADR, 0x04)
152 Name(_UPC, Package()
153 {
154 0xFF, // Port is connectable
155 0xFF, // Proprietary connector
156 0x00000000, // Reserved 0 - must be zero
157 0x00000000
158 }) // Reserved 1 - must be zero
159
160 Name(_PLD, Package()
161 {
162 Buffer (0x10)
163 {
164 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
165 0x00, 0x00, 0x00, 0x00,
166 0xE1, 0x1E, 0x00, 0x00, // Front Panel, Vertical Lower, Horz. Left, Shape Unknown
167 0x00, 0x00, 0x00, 0x00
168 }
169 })
170
171 // copy USB Sideband Deferring GPE Vector (HOST_ALERT#1) to DSM method
172 Include("UsbSbd.asl")
173 }
174
175 Device(PR15)
176 {
177 Name(_ADR, 0x05)
178 Name(_UPC, Package()
179 {
180 0xFF, // Port is connectable
181 0xFF, // Proprietary connector
182 0x00000000, // Reserved 0 - must be zero
183 0x00000000
184 }) // Reserved 1 - must be zero
185 Name(_PLD, Package()
186 {
187 Buffer (0x10)
188 {
189 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
190 0x00, 0x00, 0x00, 0x00,
191 0xB1, 0x1E, 0x00, 0x00, // Panel Unknown, Shape Unknown
192 0x00, 0x00, 0x00, 0x00
193 }
194 })
195 // copy USB Sideband Deferring GPE Vector (HOST_ALERT#2) to DSM method
196 Include("UsbSbd.asl")
197 }
198
199 Device(PR16)
200 {
201 Name(_ADR, 0x06)
202 Name(_UPC, Package()
203 {
204 0xFF, // Port is connectable
205 0xFF, // Proprietary connector
206 0x00000000, // Reserved 0 - must be zero
207 0x00000000
208 }) // Reserved 1 - must be zero
209 Name(_PLD, Package()
210 {
211 Buffer (0x10)
212 {
213 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
214 0x00, 0x00, 0x00, 0x00,
215 0xB1, 0x1E, 0x00, 0x00, // Panel Unknown, Shape Unknown
216 0x00, 0x00, 0x00, 0x00
217 }
218 })
219 // copy USB Sideband Deferring GPE Vector (HOST_ALERT#1) to DSM method
220 Include("UsbSbd.asl")
221 }
222
223 Device(PR17)
224 {
225 Name(_ADR, 0x07)
226 Name(_UPC, Package()
227 {
228 0xFF, // Port is connectable
229 0xFF, // Proprietary connector
230 0x00000000, // Reserved 0 - must be zero
231 0x00000000
232 }) // Reserved 1 - must be zero
233 Name(_PLD, Package()
234 {
235 Buffer (0x10)
236 {
237 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
238 0x00, 0x00, 0x00, 0x00,
239 0xB1, 0x1E, 0x00, 0x00, // Panel Unknown, Shape Unknown
240 0x00, 0x00, 0x00, 0x00
241 }
242 })
243 // copy USB Sideband Deferring GPE Vector (HOST_ALERT#2) to DSM method
244 Include("UsbSbd.asl")
245 }
246
247 Device(PR18)
248 {
249 Name(_ADR, 0x08)
250 Name(_UPC, Package()
251 {
252 0xFF, // Port is connectable
253 0xFF, // Proprietary connector
254 0x00000000, // Reserved 0 - must be zero
255 0x00000000
256 }) // Reserved 1 - must be zero
257 Name(_PLD, Package()
258 {
259 Buffer (0x10)
260 {
261 0x81, 0x00, 0x00, 0x00, // Revision 1, Ignore color
262 0x00, 0x00, 0x00, 0x00,
263 0xB1, 0x1E, 0x00, 0x00, // Panel Unknown, Shape Unknown
264 0x00, 0x00, 0x00, 0x00
265 }
266 })
267 }
268 } // End of PR01
269 } // End of HUBN