1 /**************************************************************************;
4 ;* Intel Corporation - ACPI Reference Code for the Haswell *;
5 ;* Family of Customer Reference Boards. *;
8 ;* Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved *;
10 ; SPDX-License-Identifier: BSD-2-Clause-Patent
14 ;**************************************************************************/
16 //scope is \_SB.PCI0.XHC
19 Name(_ADR, 0x00140000) //Device 20, Function 0
21 //When it is in Host mode, USH core is connected to USB3 microAB(USB3 P1 and USB2 P0)
22 Name (_DDN, "Baytrail XHCI controller (CCG core/Host only)" )
28 Name(_DEP, Package(0x1)
35 Name (_STR, Unicode ("Baytrail XHCI controller (CCG core/Host only)"))
36 Name(_PRW, Package() {0xD,4})
40 If (LAnd (PMES, PMEE)) {
46 OperationRegion (PMEB, PCI_Config, 0x74, 0x04) // Power Management Control/Status
47 Field (PMEB, WordAcc, NoLock, Preserve)
50 PMEE, 1, //bit8 PME_En
52 PMES, 1 //bit15 PME_Status
57 If(LNotEqual(XHCI, 0)) //NVS variable controls present of XHCI controller
66 OperationRegion(XPRT,PCI_Config,0xD0,0x10)
67 Field(XPRT,DWordAcc,NoLock,Preserve) //usbx_top.doc.xml
69 PR2, 32, //bit[8:0] USB2HCSEL
70 PR2M, 32, //bit[8:0] USB2HCSELM
71 PR3, 32, //bit[3:0] USB3SSEN
72 PR3M, 32 //bit[3:0] USB3SSENM
77 Name(_ADR, Zero) //address 0 is reserved for root hub
80 // Super Speed Ports - must match _UPC declarations of the coresponding Full Speed Ports.
86 Method(_UPC,0,Serialized)
90 0xFF, // Port is connectable if non-zero
91 0x06, // USB3 uAB connector
98 Method(_PLD,0,Serialized)
100 Name(PLDP, Package() //pls check ACPI 5.0 section 6.1.8
104 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
105 0x82, 0x00, 0x00, 0x00,
106 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
107 0x00, 0x00, 0x00, 0x00,
108 //95:64 - bit[66:64]=b'011 visiable/docking/no lid bit[69:67]=b'001 bottom panel bit[71:70]=b'01 Center bit[73:72]=b'01 Center
109 // bit[77:74]=6 Horizontal Trapezoid bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
110 0x4B, 0x19, 0x00, 0x00,
111 //127:96 -bit[96]=1 Ejectable bit[97]=1 OSPM Ejection required Bit[105:98]=0 no Cabinet Number
112 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
113 0x03, 0x00, 0x00, 0x00,
114 //159:128 Vert. and Horiz. Offsets not supplied
115 0xFF, 0xFF, 0xFF, 0xFF
123 // pair port with port 7 (SS)
124 // The UPC declarations for LS/FS/HS and SS ports that are paired to form a USB3.0 compatible connector.
125 // A "pair" is defined by two ports that declare _PLDs with identical Panel, Vertical Position, Horizontal Postion, Shape, Group Orientation
131 Method(_UPC,0,Serialized)
133 Name(UPCP, Package() { 0xFF,0x06,0x00,0x00 })
137 Method(_PLD,0,Serialized)
139 Name(PLDP, Package() //pls check ACPI 5.0 section 6.1.8
143 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
144 0x82, 0x00, 0x00, 0x00,
145 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
146 0x00, 0x00, 0x00, 0x00,
147 //95:64 - bit[66:64]=b'011 visiable/docking/no lid bit[69:67]=b'001 bottom panel bit[71:70]=b'01 Center bit[73:72]=b'01 Center
148 // bit[77:74]=6 Horizontal Trapezoid bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
149 0x4B, 0x19, 0x00, 0x00,
150 //127:96 -bit[96]=1 Ejectable bit[97]=1 OSPM Ejection required Bit[105:98]=0 no Cabinet Number
151 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
152 0x03, 0x00, 0x00, 0x00,
153 //159:128 Vert. and Horiz. Offsets not supplied
154 0xFF, 0xFF, 0xFF, 0xFF
161 // USB2 Type-A/USB2 only
162 // EHCI debug capable
165 Name(_ADR, 0x02) // 0 is for root hub so physical port index starts from 1 (it is port1 in schematic)
167 Method(_UPC,0,Serialized)
180 Method(_PLD,0,Serialized)
186 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
187 0x82, 0x00, 0x00, 0x00,
188 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
189 0x00, 0x00, 0x00, 0x00,
190 //95:64 - bit[66:64]=b'011 visiable/docking/no lid bit[69:67]=b'001 bottom panel bit[71:70]=b'01 Center bit[73:72]=b'00 Left
191 // bit[77:74]=2 Square bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
192 0x4B, 0x08, 0x00, 0x00,
193 //127:96 -bit[96]=1 Ejectable bit[97]=1 OSPM Ejection required Bit[105:98]=0 no Cabinet Number
194 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
195 0x03, 0x00, 0x00, 0x00,
196 //159:128 Vert. and Horiz. Offsets not supplied
197 0xFF, 0xFF, 0xFF, 0xFF
209 Method(_UPC,0,Serialized)
222 Method(_RMV, 0) // for XHCICV debug purpose
227 Method(_PLD,0,Serialized)
233 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
234 0x82, 0x00, 0x00, 0x00,
235 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
236 0x00, 0x00, 0x00, 0x00,
237 //95:64 - bit[66:64]=b'000 not Visible/no docking/no lid bit[69:67]=6 (b'110) unknown(Vertical Position and Horizontal Position will be ignored)
238 // bit[71:70]=b'00 Vertical Position ignore bit[73:72]=b'00 Horizontal Position ignore
239 // bit[77:74]=2 Square bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
240 0x30, 0x08, 0x00, 0x00,
241 //127:96 -bit[96]=0 not Ejectable bit[97]=0 OSPM Ejection not required Bit[105:98]=0 no Cabinet Number
242 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
243 0x00, 0x00, 0x00, 0x00,
244 //159:128 Vert. and Horiz. Offsets not supplied
245 0xFF, 0xFF, 0xFF, 0xFF
256 Method(_UPC,0,Serialized)
261 0xFF, //Proprietary connector (FPC connector)
268 Method(_PLD,0,Serialized)
274 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
275 0x82, 0x00, 0x00, 0x00,
276 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
277 0x00, 0x00, 0x00, 0x00,
278 //95:64 - bit[66:64]=b'000 not Visible/no docking/no lid bit[69:67]=6 (b'110) unknown(Vertical Position and Horizontal Position will be ignored)
279 // bit[71:70]=b'00 Vertical Position ignore bit[73:72]=b'00 Horizontal Position ignore
280 // bit[77:74]=2 Square bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
281 0x30, 0x08, 0x00, 0x00,
282 //127:96 -bit[96]=0 not Ejectable bit[97]=0 OSPM Ejection not required Bit[105:98]=0 no Cabinet Number
283 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
284 0x00, 0x00, 0x00, 0x00,
285 //159:128 Vert. and Horiz. Offsets not supplied
286 0xFF, 0xFF, 0xFF, 0xFF
295 Device(HSC1) // USB2 HSIC 01
299 Method(_UPC,0,Serialized)
304 0xFF, //Proprietary connector (FPC connector)
311 Method(_PLD,0,Serialized)
317 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
318 0x82, 0x00, 0x00, 0x00,
319 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
320 0x00, 0x00, 0x00, 0x00,
321 //95:64 - bit[66:64]=b'000 not Visible/no docking/no lid bit[69:67]=6 (b'110) unknown(Vertical Position and Horizontal Position will be ignored)
322 // bit[71:70]=b'00 Vertical Position ignore bit[73:72]=b'00 Horizontal Position ignore
323 // bit[77:74]=2 Square bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
324 0x30, 0x08, 0x00, 0x00,
325 //127:96 -bit[96]=0 not Ejectable bit[97]=0 OSPM Ejection not required Bit[105:98]=0 no Cabinet Number
326 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
327 0x00, 0x00, 0x00, 0x00,
328 //159:128 Vert. and Horiz. Offsets not supplied
329 0xFF, 0xFF, 0xFF, 0xFF
336 Device(HSC2) // USB2 HSIC 02
340 Method(_UPC,0,Serialized)
345 0xFF, //Proprietary connector (FPC connector)
352 Method(_PLD,0,Serialized)
358 //31:0 - Bit[6:0]=2 revision is 0x2, Bit[7]=1 Ignore Color Bit[31:8]=0 RGB color is ignored
359 0x82, 0x00, 0x00, 0x00,
360 //63:32 - Bit[47:32]=0 width: 0x0000 Bit[63:48]=0 Height:0x0000
361 0x00, 0x00, 0x00, 0x00,
362 //95:64 - bit[66:64]=b'000 not Visible/no docking/no lid bit[69:67]=6 (b'110) unknown(Vertical Position and Horizontal Position will be ignored)
363 // bit[71:70]=b'00 Vertical Position ignore bit[73:72]=b'00 Horizontal Position ignore
364 // bit[77:74]=2 Square bit[78]=0 bit[86:79]=0 bit[94:87]='0 no group info' bit[95]=0 not a bay
365 0x30, 0x08, 0x00, 0x00,
366 //127:96 -bit[96]=0 not Ejectable bit[97]=0 OSPM Ejection not required Bit[105:98]=0 no Cabinet Number
367 // bit[113:106]=0 no Card cage Number bit[114]=0 no reference shape Bit[118:115]=0 no rotation Bit[123:119]=0 no order
368 0x00, 0x00, 0x00, 0x00,
369 //159:128 Vert. and Horiz. Offsets not supplied
370 0xFF, 0xFF, 0xFF, 0xFF