]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2DeviceRefCodePkg/AcpiTablesPCAT/PchLpss.asl
BaseTools: Remove unnecessary super function
[mirror_edk2.git] / Vlv2DeviceRefCodePkg / AcpiTablesPCAT / PchLpss.asl
CommitLineData
3cbfba02
DW
1/**************************************************************************;\r
2;* *;\r
3;* *;\r
4;* Intel Corporation - ACPI Reference Code for the Baytrail *;\r
5;* Family of Customer Reference Boards. *;\r
6;* *;\r
7;* *;\r
aa44e98d 8;* Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved *;\r
3cbfba02
DW
9;\r
10; This program and the accompanying materials are licensed and made available under\r
11; the terms and conditions of the BSD License that accompanies this distribution.\r
12; The full text of the license may be found at\r
13; http://opensource.org/licenses/bsd-license.php.\r
14;\r
15; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
16; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
17;\r
18;* *;\r
19;* *;\r
20;**************************************************************************/\r
21//\r
22// LPIO1 DMA#1 (Synopsis GP DMA)\r
23//\r
24Device (GDM1)\r
25{\r
26 Name (_HID, "INTL9C60")\r
27 Name (_DDN, "Intel(R) DMA Controller #1 - INTL9C60")\r
28 Name (_UID, 1)\r
29\r
30 Name (RBUF, ResourceTemplate ()\r
31 {\r
32 Memory32Fixed (ReadWrite, 0x00000000, 0x00004000, BAR0)\r
33 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {42} // DMA #1 IRQ\r
34 })\r
35 Method (_CRS, 0x0, NotSerialized)\r
36 {\r
37 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
38 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
39 Store(D10A, B0BA)\r
40 Store(D10L, B0LN)\r
41 Return (RBUF)\r
42 }\r
43 Method (_STA, 0x0, NotSerialized)\r
44 {\r
45 //\r
46 // PCIM>> 0:ACPI mode 1:PCI mode\r
47 //\r
48 If (LEqual(PCIM, 1)) {\r
49 Return (0x0)\r
50 }\r
51\r
52 If (LOr(LEqual(D10A, 0), LEqual(L10D, 1)))\r
53 {\r
54 Return (0x0)\r
55 }\r
56 Return (0xF)\r
57 }\r
58}\r
59\r
60//\r
61// LPIO1 DMA#2 (Synopsis GP DMA)\r
62//\r
63Device (GDM2)\r
64{\r
65 Name (_HID, "INTL9C60")\r
66 Name (_DDN, "Intel(R) DMA Controller #2 - INTL9C60")\r
67 Name (_UID, 2)\r
68\r
69 Name (RBUF, ResourceTemplate ()\r
70 {\r
71 Memory32Fixed (ReadWrite, 0x00000000, 0x00004000, BAR0)\r
72 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {43} // DMA #2 IRQ\r
73 })\r
74 Method (_CRS, 0x0, NotSerialized)\r
75 {\r
76 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
77 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
78 Store(D20A, B0BA)\r
79 Store(D20L, B0LN)\r
80 Return (RBUF)\r
81 }\r
82 Method (_STA, 0x0, NotSerialized)\r
83 {\r
84 //\r
85 // PCIM>> 0:ACPI mode 1:PCI mode\r
86 //\r
87 If (LEqual(PCIM, 1)) {\r
88 Return (0x0)\r
89 }\r
90\r
91 If (LOr(LEqual(D20A, 0), LEqual(L20D, 1)))\r
92 {\r
93 Return (0x0)\r
94 }\r
95 Return (0xF)\r
96 }\r
97}\r
98\r
99//\r
100// LPIO1 PWM #1\r
101//\r
102Device(PWM1)\r
103{\r
104 Name (_ADR, 0)\r
105 Name (_HID, "80860F09")\r
106 Name (_CID, "80860F09")\r
107 Name (_DDN, "Intel(R) PWM Controller #1 - 80860F08")\r
108 Name (_UID, 1)\r
109\r
110 Name (RBUF, ResourceTemplate ()\r
111 {\r
112 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
113 })\r
114 Method (_CRS, 0x0, NotSerialized)\r
115 {\r
116 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
117 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
118 Store(P10A, B0BA)\r
119 Store(P10L, B0LN)\r
120 Return (RBUF)\r
121 }\r
122 Method (_STA, 0x0, NotSerialized)\r
123 {\r
124 //\r
125 // PCIM>> 0:ACPI mode 1:PCI mode\r
126 //\r
127 If (LEqual(PCIM, 1)) {\r
128 Return (0x0)\r
129 }\r
130\r
131 If (LOr(LEqual(P10A, 0), LEqual(L11D, 1)))\r
132 {\r
133 Return (0x0)\r
134 }\r
135 Return (0xF)\r
136 }\r
137}\r
138\r
139//\r
140// LPIO1 PWM #2\r
141//\r
142Device(PWM2)\r
143{\r
144 Name (_ADR, 0)\r
145 Name (_HID, "80860F09")\r
146 Name (_CID, "80860F09")\r
147 Name (_DDN, "Intel(R) PWM Controller #2 - 80860F09")\r
148 Name (_UID, 2)\r
149\r
150 Name (RBUF, ResourceTemplate ()\r
151 {\r
152 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
153 })\r
154 Method (_CRS, 0x0, NotSerialized)\r
155 {\r
156 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
157 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
158 Store(P20A, B0BA)\r
159 Store(P20L, B0LN)\r
160 Return (RBUF)\r
161 }\r
162 Method (_STA, 0x0, NotSerialized)\r
163 {\r
164 //\r
165 // PCIM>> 0:ACPI mode 1:PCI mode\r
166 //\r
167 If (LEqual(PCIM, 1)) {\r
168 Return (0x0)\r
169 }\r
170\r
171 If (LOr(LEqual(P20A, 0), LEqual(L12D, 1)))\r
172 {\r
173 Return (0x0)\r
174 }\r
175 Return (0xF)\r
176 }\r
177}\r
178\r
179//\r
180// LPIO1 HS-UART #1\r
181//\r
182Device(URT1)\r
183{\r
184 Name (_ADR, 0)\r
185 Name (_HID, "80860F0A")\r
186 Name (_CID, "80860F0A")\r
187 Name (_DDN, "Intel(R) HS-UART Controller #1 - 80860F0A")\r
188 Name (_UID, 1)\r
189 Name(_DEP, Package(0x1)\r
190 {\r
191 PEPD\r
192 })\r
193 Name (RBUF, ResourceTemplate ()\r
194 {\r
195 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
196 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {39} // HS-UART #1 IRQ\r
197\r
198 FixedDMA(0x2, 0x2, Width32Bit, )\r
199 FixedDMA(0x3, 0x3, Width32Bit, )\r
200 })\r
201 Method (_HRV, 0x0, NotSerialized)\r
202 {\r
203 Return (SOCS)\r
204 }\r
205 Method (_CRS, 0x0, NotSerialized)\r
206 {\r
207 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
208 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
209 Store(U10A, B0BA)\r
210 Store(U10L, B0LN)\r
211 Return (RBUF)\r
212 }\r
213\r
214 Method (_STA, 0x0, NotSerialized)\r
215 {\r
216 //\r
217 // PCIM>> 0:ACPI mode 1:PCI mode\r
218 //\r
219 If (LEqual(PCIM, 1)) {\r
220 Return (0x0)\r
221 }\r
222\r
223 If (LOr(LEqual(U10A, 0), LEqual(L13D, 1)))\r
224 {\r
225 Return (0x0)\r
226 }\r
227 Return (0xF)\r
228 }\r
229\r
230 Method (_PS3, 0, NotSerialized)\r
231 {\r
232 OR(PSAT, 0x00000003, PSAT)\r
233 OR(PSAT, 0X00000000, PSAT)\r
234 }\r
235\r
236 Method (_PS0, 0, NotSerialized)\r
237 {\r
238 And(PSAT, 0xfffffffC, PSAT)\r
239 OR(PSAT, 0X00000000, PSAT)\r
240 }\r
241\r
242 OperationRegion (KEYS, SystemMemory, U11A, 0x100)\r
243 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
244 {\r
245 Offset (0x84),\r
246 PSAT, 32\r
247 }\r
248}// Device (URT1)\r
249\r
250//\r
251// LPIO1 HS-UART #2\r
252//\r
253Device(URT2)\r
254{\r
255 Name (_ADR, 0)\r
256 Name (_HID, "80860F0A")\r
257 Name (_CID, "80860F0A")\r
258 Name (_DDN, "Intel(R) HS-UART Controller #2 - 80860F0C")\r
259 Name (_UID, 2)\r
260\r
261 Name(_DEP, Package(0x1)\r
262 {\r
263 PEPD\r
264 })\r
265\r
266 Name (RBUF, ResourceTemplate ()\r
267 {\r
268 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
269 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {40} // HS-UART #2 IRQ\r
270\r
271 FixedDMA(0x4, 0x4, Width32Bit, )\r
272 FixedDMA(0x5, 0x5, Width32Bit, )\r
273 })\r
274\r
275 Method (_HRV, 0x0, NotSerialized)\r
276 {\r
277 Return (SOCS)\r
278 }\r
279\r
280 Method (_CRS, 0x0, NotSerialized)\r
281 {\r
282 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
283 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
284 Store(U20A, B0BA)\r
285 Store(U20L, B0LN)\r
286 Return (RBUF)\r
287 }\r
288\r
289 Method (_STA, 0x0, NotSerialized)\r
290 {\r
291 //\r
292 // PCIM>> 0:ACPI mode 1:PCI mode\r
293 //\r
294 If (LEqual(PCIM, 1)) {\r
295 Return (0x0)\r
296 }\r
297\r
298 If (LOr(LEqual(U20A, 0), LEqual(L14D, 1)))\r
299 {\r
300 Return (0x0)\r
301 }\r
302 Return (0xF)\r
303 }\r
304\r
305 Method (_PS3, 0, NotSerialized)\r
306 {\r
307 OR(PSAT, 0x00000003, PSAT)\r
308 OR(PSAT, 0X00000000, PSAT)\r
309 }\r
310\r
311 Method (_PS0, 0, NotSerialized)\r
312 {\r
313 And(PSAT, 0xfffffffC, PSAT)\r
314 OR(PSAT, 0X00000000, PSAT)\r
315 }\r
316\r
317 OperationRegion (KEYS, SystemMemory, U21A, 0x100)\r
318 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
319 {\r
320 Offset (0x84),\r
321 PSAT, 32\r
322 }\r
323}// Device (URT2)\r
324\r
325//\r
326// LPIO1 SPI\r
327//\r
328Device(SPI1)\r
329{\r
330 Name (_ADR, 0)\r
331 Name (_HID, "80860F0E")\r
332 Name (_CID, "80860F0E")\r
333 Name (_UID, "0") // Static bus number assignment\r
334 Name(_DEP, Package(0x1)\r
335 {\r
336 PEPD\r
337 })\r
338 Name (_DDN, "Intel(R) SPI Controller - 80860F0E")\r
339\r
340 Name (RBUF, ResourceTemplate ()\r
341 {\r
342 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
343 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {41} // SPI IRQ\r
344\r
345 FixedDMA(0x0, 0x0, Width32Bit, )\r
346 FixedDMA(0x1, 0x1, Width32Bit, )\r
347 })\r
348\r
349 Method (_HRV, 0x0, NotSerialized)\r
350 {\r
351 Return (SOCS)\r
352 }\r
353\r
354 Method (_CRS, 0x0, NotSerialized)\r
355 {\r
356 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
357 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
358 Store(SP0A, B0BA)\r
359 Store(SP0L, B0LN)\r
360 Return (RBUF)\r
361 }\r
362\r
363 Method (_STA, 0x0, NotSerialized)\r
364 {\r
365 //\r
366 // PCIM>> 0:ACPI mode 1:PCI mode\r
367 //\r
368 If (LEqual(PCIM, 1)) {\r
369 Return (0x0)\r
370 }\r
371\r
372 If (LOr(LEqual(SP0A, 0), LEqual(L15D, 1)))\r
373 {\r
374 Return (0x0)\r
375 }\r
376 Return (0xF)\r
377 }\r
378\r
379 Method (_PS3, 0, NotSerialized)\r
380 {\r
381 OR(PSAT, 0x00000003, PSAT)\r
382 OR(PSAT, 0X00000000, PSAT)\r
383 }\r
384\r
385 Method (_PS0, 0, NotSerialized)\r
386 {\r
387 And(PSAT, 0xfffffffC, PSAT)\r
388 OR(PSAT, 0X00000000, PSAT)\r
389 }\r
390\r
391 OperationRegion (KEYS, SystemMemory, SP1A, 0x100)\r
392 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
393 {\r
394 Offset (0x84),\r
395 PSAT, 32\r
396 }\r
397}// Device (SPI1)\r
398\r
399//\r
400// LPIO2 I2C #1\r
401//\r
402Device(I2C1)\r
403{\r
404 Name (_ADR, 0)\r
405 Name (_HID, "80860F41")\r
406 Name (_CID, "80860F41")\r
407 Name(_DEP, Package(0x1)\r
408 {\r
409 PEPD\r
410 })\r
411 Name (_DDN, "Intel(R) I2C Controller #1 - 80860F41")\r
412 Name (_UID, 1)\r
413\r
414 Name (RBUF, ResourceTemplate ()\r
415 {\r
416 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
417 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {32} // I2C #1 IRQ\r
418\r
419 FixedDMA(0x10, 0x0, Width32Bit, )\r
420 FixedDMA(0x11, 0x1, Width32Bit, )\r
421 })\r
422\r
423 Method (SSCN, 0x0, NotSerialized)\r
424 {\r
425 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
426 Return (PKG)\r
427 }\r
428 Method (FMCN, 0x0, NotSerialized)\r
429 {\r
430 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
431 Return (PKG)\r
432 }\r
433 Method (FPCN, 0x0, NotSerialized)\r
434 {\r
435 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
436 Return (PKG)\r
437 }\r
438\r
439 Method (_HRV, 0x0, NotSerialized)\r
440 {\r
441 Return (SOCS)\r
442 }\r
443 Method (_CRS, 0x0, NotSerialized)\r
444 {\r
445 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
446 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
447 Store(I10A, B0BA)\r
448 Store(I10L, B0LN)\r
449 Return (RBUF)\r
450 }\r
451 Method (_STA, 0x0, NotSerialized)\r
452 {\r
453 //\r
454 // PCIM>> 0:ACPI mode 1:PCI mode\r
455 //\r
456 If (LEqual(PCIM, 1)) {\r
457 Return (0x0)\r
458 }\r
459\r
460 If (LOr(LEqual(I10A, 0), LEqual(L21D, 1)))\r
461 {\r
462 Return (0x0)\r
463 }\r
464 Return (0xF)\r
465\r
466 }\r
467\r
468 Method (_PS3, 0, NotSerialized)\r
469 {\r
470 OR(PSAT, 0x00000003, PSAT)\r
471 OR(PSAT, 0X00000000, PSAT)\r
472 }\r
473 Method (_PS0, 0, NotSerialized)\r
474 {\r
475 And(PSAT, 0xfffffffC, PSAT)\r
476 OR(PSAT, 0X00000000, PSAT)\r
477 }\r
478 OperationRegion (KEYS, SystemMemory, I11A, 0x100)\r
479 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
480 {\r
481 Offset (0x84),\r
482 PSAT, 32\r
483 }\r
484\r
485}\r
486\r
487//\r
488// LPIO2 I2C #2\r
489//\r
490Device(I2C2)\r
491{\r
492 Name (_ADR, 0)\r
493 Name (_HID, "80860F41")\r
494 Name (_CID, "80860F41")\r
495 Name(_DEP, Package(0x1)\r
496 {\r
497 PEPD\r
498 })\r
499 Name (_DDN, "Intel(R) I2C Controller #2 - 80860F42")\r
500 Name (_UID, 2)\r
501\r
502 Name (RBUF, ResourceTemplate ()\r
503 {\r
504 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
505 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {33} // I2C #2 IRQ\r
506\r
507 FixedDMA(0x12, 0x2, Width32Bit, )\r
508 FixedDMA(0x13, 0x3, Width32Bit, )\r
509 })\r
510\r
511 Method (SSCN, 0x0, NotSerialized)\r
512 {\r
513 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
514 Return (PKG)\r
515 }\r
516 Method (FMCN, 0x0, NotSerialized)\r
517 {\r
518 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
519 Return (PKG)\r
520 }\r
521 Method (FPCN, 0x0, NotSerialized)\r
522 {\r
523 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
524 Return (PKG)\r
525 }\r
526\r
527 Method (_HRV, 0x0, NotSerialized)\r
528 {\r
529 Return (SOCS)\r
530 }\r
531 Method (_CRS, 0x0, NotSerialized)\r
532 {\r
533 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
534 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
535 Store(I20A, B0BA)\r
536 Store(I20L, B0LN)\r
537 Return (RBUF)\r
538 }\r
539 Method (_STA, 0x0, NotSerialized)\r
540 {\r
541 //\r
542 // PCIM>> 0:ACPI mode 1:PCI mode\r
543 //\r
544 If (LEqual(PCIM, 1)) {\r
545 Return (0x0)\r
546 }\r
547\r
548 If (LOr(LEqual(I20A, 0), LEqual(L22D, 1)))\r
549 {\r
550 Return (0x0)\r
551 }\r
552 Return (0xF)\r
553 }\r
554\r
555 Method (_PS3, 0, NotSerialized)\r
556 {\r
557 OR(PSAT, 0x00000003, PSAT)\r
558 OR(PSAT, 0X00000000, PSAT)\r
559\r
560 }\r
561 Method (_PS0, 0, NotSerialized)\r
562 {\r
563 And(PSAT, 0xfffffffC, PSAT)\r
564 OR(PSAT, 0X00000000, PSAT)\r
565 }\r
566 OperationRegion (KEYS, SystemMemory, I21A, 0x100)\r
567 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
568 {\r
569 Offset (0x84),\r
570 PSAT, 32\r
571 }\r
572\r
573\r
574 //\r
575 // Realtek Audio Codec\r
576 //\r
577 Device (RTEK) //Audio Codec driver I2C\r
578 {\r
579 Name (_ADR, 0)\r
580 Name (_HID, "10EC5640")\r
581 Name (_CID, "10EC5640")\r
582 Name (_DDN, "RTEK Codec Controller " )\r
583 Name (_UID, 1)\r
584\r
585\r
586 Method(_CRS, 0x0, Serialized)\r
587 {\r
588 Name(SBUF,ResourceTemplate ()\r
589 {\r
590 I2CSerialBus(0x1C, //SlaveAddress: bus address\r
591 , //SlaveMode: default to ControllerInitiated\r
592 400000, //ConnectionSpeed: in Hz\r
593 , //Addressing Mode: default to 7 bit\r
594 "\\_SB.I2C2", //ResourceSource: I2C bus controller name\r
595 , //ResourceSourceIndex: defaults to 0\r
596 , //ResourceUsage: Defaults to ResourceConsumer\r
597 , //Descriptor Name: creates name for offset of resource descriptor\r
598 ) //VendorData\r
599 GpioInt(Edge, ActiveHigh, ExclusiveAndWake, PullNone, 0,"\\_SB.GPO2") {4} // AUD_INT\r
600 })\r
601 Return (SBUF)\r
602 }\r
603\r
604 Method (_STA, 0x0, NotSerialized)\r
605 {\r
606\r
607 If (LEqual(LPEE, 2)) { // LPE enable/disable\r
aa44e98d 608 If (LEqual(LPAD, 1))\r
609 {\r
610 Return(0xF)\r
611 }\r
3cbfba02
DW
612 }\r
613 Return(0)\r
614 }\r
615\r
616 Method (_DIS, 0x0, NotSerialized)\r
617 {\r
618\r
619 }\r
620 } // Device (RTEK)\r
621} // Device (I2C2)\r
622\r
623//\r
624// LPIO2 I2C #3\r
625//\r
626Device(I2C3)\r
627{\r
628 Name (_ADR, 0)\r
629 Name (_HID, "80860F41")\r
630 Name (_CID, "80860F41")\r
631 Name (_DDN, "Intel(R) I2C Controller #3 - 80860F43")\r
632 Name (_UID, 3)\r
633 Name(_DEP, Package(0x1)\r
634 {\r
635 PEPD\r
636 })\r
637 Name (RBUF, ResourceTemplate ()\r
638 {\r
639 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
640 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {34} // I2C #3 IRQ\r
641\r
642 FixedDMA(0x14, 0x4, Width32Bit, )\r
643 FixedDMA(0x15, 0x5, Width32Bit, )\r
644 })\r
645\r
646 Method (SSCN, 0x0, NotSerialized)\r
647 {\r
648 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
649 Return (PKG)\r
650 }\r
651 Method (FMCN, 0x0, NotSerialized)\r
652 {\r
653 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
654 Return (PKG)\r
655 }\r
656 Method (FPCN, 0x0, NotSerialized)\r
657 {\r
658 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
659 Return (PKG)\r
660 }\r
661\r
662 Method (_HRV, 0x0, NotSerialized)\r
663 {\r
664 Return (SOCS)\r
665 }\r
666 Method (_CRS, 0x0, NotSerialized)\r
667 {\r
668 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
669 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
670 Store(I30A, B0BA)\r
671 Store(I30L, B0LN)\r
672 Return (RBUF)\r
673 }\r
674\r
675 Method (_STA, 0x0, NotSerialized)\r
676 {\r
677 //\r
678 // PCIM>> 0:ACPI mode 1:PCI mode\r
679 //\r
680 If (LEqual(PCIM, 1)) {\r
681 Return (0x0)\r
682 }\r
683\r
684 If (LOr(LEqual(I30A, 0), LEqual(L23D, 1)))\r
685 {\r
686 Return (0x0)\r
687 }\r
688 Return (0xF)\r
689 }\r
690\r
691 Method (_PS3, 0, NotSerialized)\r
692 {\r
693 OR(PSAT, 0x00000003, PSAT)\r
694 OR(PSAT, 0X00000000, PSAT)\r
695\r
696 }\r
697 Method (_PS0, 0, NotSerialized)\r
698 {\r
699 And(PSAT, 0xfffffffC, PSAT)\r
700 OR(PSAT, 0X00000000, PSAT)\r
701 }\r
702 OperationRegion (KEYS, SystemMemory, I31A, 0x100)\r
703 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
704 {\r
705 Offset (0x84),\r
706 PSAT, 32\r
707 }\r
708\r
709\r
710}\r
711\r
712//\r
713// LPIO2 I2C #4\r
714//\r
715Device(I2C4)\r
716{\r
717 Name (_ADR, 0)\r
718 Name (_HID, "80860F41")\r
719 Name (_CID, "80860F41")\r
720 Name (_DDN, "Intel(R) I2C Controller #4 - 80860F44")\r
721 Name (_UID, 4)\r
722 Name(_DEP, Package(0x1)\r
723 {\r
724 PEPD\r
725 })\r
726 Name (RBUF, ResourceTemplate ()\r
727 {\r
728 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
729 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {35} // I2C #4 IRQ\r
730\r
731 FixedDMA(0x16, 0x6, Width32Bit, )\r
732 FixedDMA(0x17, 0x7, Width32Bit, )\r
733 })\r
734\r
735 Method (SSCN, 0x0, NotSerialized)\r
736 {\r
737 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
738 Return (PKG)\r
739 }\r
740 Method (FMCN, 0x0, NotSerialized)\r
741 {\r
742 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
743 Return (PKG)\r
744 }\r
745 Method (FPCN, 0x0, NotSerialized)\r
746 {\r
747 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
748 Return (PKG)\r
749 }\r
750\r
751\r
752 Method (_HRV, 0x0, NotSerialized)\r
753 {\r
754 Return (SOCS)\r
755 }\r
756 Method (_CRS, 0x0, NotSerialized)\r
757 {\r
758 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
759 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
760 Store(I40A, B0BA)\r
761 Store(I40L, B0LN)\r
762 Return (RBUF)\r
763 }\r
764\r
765 Method (_STA, 0x0, NotSerialized)\r
766 {\r
767 //\r
768 // PCIM>> 0:ACPI mode 1:PCI mode\r
769 //\r
770 If (LEqual(PCIM, 1)) {\r
771 Return (0x0)\r
772 }\r
773\r
774 If (LOr(LEqual(I40A, 0), LEqual(L24D, 1)))\r
775 {\r
776 Return (0x0)\r
777 }\r
778 Return (0xF)\r
779 }\r
780\r
781 Method (_PS3, 0, NotSerialized)\r
782 {\r
783 OR(PSAT, 0x00000003, PSAT)\r
784 OR(PSAT, 0X00000000, PSAT)\r
785\r
786 }\r
787 Method (_PS0, 0, NotSerialized)\r
788 {\r
789 And(PSAT, 0xfffffffC, PSAT)\r
790 OR(PSAT, 0X00000000, PSAT)\r
791 }\r
792 OperationRegion (KEYS, SystemMemory, I41A, 0x100)\r
793 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
794 {\r
795 Offset (0x84),\r
796 PSAT, 32\r
797 }\r
798\r
799 PowerResource (CLK0, 0x00, 0x0000)\r
800 {\r
801 Method (_STA, 0, NotSerialized) // _STA: Status\r
802 {\r
803 Return (CKC0)\r
804 }\r
805\r
806 Method (_ON, 0, NotSerialized) // _ON_: Power On\r
807 {\r
808 Store (One, CKC0)\r
809 Store (One, CKF0)\r
810 Sleep (0x20)\r
811 }\r
812\r
813 Method (_OFF, 0, NotSerialized) // _OFF: Power Off\r
814 {\r
815 Store (0x02, CKC0)\r
816 }\r
817 }\r
818 PowerResource (CLK1, 0x00, 0x0000)\r
819 {\r
820 Method (_STA, 0, NotSerialized) // _STA: Status\r
821 {\r
822 Return (CKC1)\r
823 }\r
824\r
825 Method (_ON, 0, NotSerialized) // _ON_: Power On\r
826 {\r
827 Store (One, CKC1)\r
828 Store (One, CKF1)\r
829 Sleep (0x20)\r
830 }\r
831\r
832 Method (_OFF, 0, NotSerialized) // _OFF: Power Off\r
833 {\r
834 Store (0x02, CKC1)\r
835 }\r
836 }\r
837}\r
838\r
839//\r
840// LPIO2 I2C #5\r
841//\r
842Device(I2C5)\r
843{\r
844 Name (_ADR, 0)\r
845 Name (_HID, "80860F41")\r
846 Name (_CID, "80860F41")\r
847 Name (_DDN, "Intel(R) I2C Controller #5 - 80860F45")\r
848 Name (_UID, 5)\r
849 Name(_DEP, Package(0x1)\r
850 {\r
851 PEPD\r
852 })\r
853 Name (RBUF, ResourceTemplate ()\r
854 {\r
855 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
856 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {36} // I2C #5 IRQ\r
857\r
858 FixedDMA(0x18, 0x0, Width32Bit, )\r
859 FixedDMA(0x19, 0x1, Width32Bit, )\r
860 })\r
861\r
862 Method (SSCN, 0x0, NotSerialized)\r
863 {\r
864 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
865 Return (PKG)\r
866 }\r
867 Method (FMCN, 0x0, NotSerialized)\r
868 {\r
869 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
870 Return (PKG)\r
871 }\r
872 Method (FPCN, 0x0, NotSerialized)\r
873 {\r
874 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
875 Return (PKG)\r
876 }\r
877\r
878 Method (_HRV, 0x0, NotSerialized)\r
879 {\r
880 Return (SOCS)\r
881 }\r
882 Method (_CRS, 0x0, NotSerialized)\r
883 {\r
884 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
885 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
886 Store(I50A, B0BA)\r
887 Store(I50L, B0LN)\r
888 Return (RBUF)\r
889 }\r
890 Method (_STA, 0x0, NotSerialized)\r
891 {\r
892 //\r
893 // PCIM>> 0:ACPI mode 1:PCI mode\r
894 //\r
895 If (LEqual(PCIM, 1)) {\r
896 Return (0x0)\r
897 }\r
898\r
899 If (LOr(LEqual(I50A, 0), LEqual(L25D, 1)))\r
900 {\r
901 Return (0x0)\r
902 }\r
903 Return (0xF)\r
904 }\r
905\r
906 Method (_PS3, 0, NotSerialized)\r
907 {\r
908 OR(PSAT, 0x00000003, PSAT)\r
909 OR(PSAT, 0X00000000, PSAT)\r
910 }\r
911 Method (_PS0, 0, NotSerialized)\r
912 {\r
913 And(PSAT, 0xfffffffC, PSAT)\r
914 OR(PSAT, 0X00000000, PSAT)\r
915 }\r
916 OperationRegion (KEYS, SystemMemory, I51A, 0x100)\r
917 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
918 {\r
919 Offset (0x84),\r
920 PSAT, 32\r
921 }\r
922}\r
923\r
924//\r
925// LPIO2 I2C #6\r
926//\r
927Device(I2C6)\r
928{\r
929 Name (_ADR, 0)\r
930 Name (_HID, "80860F41")\r
931 Name (_CID, "80860F41")\r
932 Name (_DDN, "Intel(R) I2C Controller #6 - 80860F46")\r
933 Name (_UID, 6)\r
934 Name(_DEP, Package(0x1)\r
935 {\r
936 PEPD\r
937 })\r
938 Name (RBUF, ResourceTemplate ()\r
939 {\r
940 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
941 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {37} // I2C #6 IRQ\r
942\r
943 FixedDMA(0x1A, 0x02, Width32Bit, )\r
944 FixedDMA(0x1B, 0x03, Width32Bit, )\r
945 })\r
946\r
947 Method (SSCN, 0x0, NotSerialized)\r
948 {\r
949 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
950 Return (PKG)\r
951 }\r
952 Method (FMCN, 0x0, NotSerialized)\r
953 {\r
954 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
955 Return (PKG)\r
956 }\r
957 Method (FPCN, 0x0, NotSerialized)\r
958 {\r
959 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
960 Return (PKG)\r
961 }\r
962\r
963 Method (_HRV, 0x0, NotSerialized)\r
964 {\r
965 Return (SOCS)\r
966 }\r
967 Method (_CRS, 0x0, NotSerialized)\r
968 {\r
969 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
970 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
971 Store(I60A, B0BA)\r
972 Store(I60L, B0LN)\r
973 Return (RBUF)\r
974 }\r
975 Method (_STA, 0x0, NotSerialized)\r
976 {\r
977 //\r
978 // PCIM>> 0:ACPI mode 1:PCI mode\r
979 //\r
980 If (LEqual(PCIM, 1)) {\r
981 Return (0x0)\r
982 }\r
983\r
984 If (LOr(LEqual(I60A, 0), LEqual(L26D, 1)))\r
985 {\r
986 Return (0x0)\r
987 }\r
988 Return (0xF)\r
989 }\r
990\r
991 Method (_PS3, 0, NotSerialized)\r
992 {\r
993 OR(PSAT, 0x00000003, PSAT)\r
994 OR(PSAT, 0X00000000, PSAT)\r
995 }\r
996 Method (_PS0, 0, NotSerialized)\r
997 {\r
998 And(PSAT, 0xfffffffC, PSAT)\r
999 OR(PSAT, 0X00000000, PSAT)\r
1000 }\r
1001 OperationRegion (KEYS, SystemMemory, I61A, 0x100)\r
1002 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
1003 {\r
1004 Offset (0x84),\r
1005 PSAT, 32\r
1006 }\r
1007}\r
1008\r
1009//\r
1010// LPIO2 I2C #7\r
1011//\r
1012Device(I2C7)\r
1013{\r
1014 Name (_ADR, 0)\r
1015 Name (_HID, "80860F41")\r
1016 Name (_CID, "80860F41")\r
1017 //Name (_CLS, Package (3) {0x0C, 0x80, 0x00})\r
1018 Name (_DDN, "Intel(R) I2C Controller #7 - 80860F47")\r
1019 Name (_UID, 7)\r
1020 Name(_DEP, Package(0x1)\r
1021 {\r
1022 PEPD\r
1023 })\r
1024 Name (RBUF, ResourceTemplate ()\r
1025 {\r
1026 Memory32Fixed (ReadWrite, 0x00000000, 0x00001000, BAR0)\r
1027 Interrupt (ResourceConsumer, Level, ActiveLow, Exclusive, , , ) {38} // I2C #7 IRQ\r
1028\r
1029 FixedDMA(0x1C, 0x4, Width32Bit, )\r
1030 FixedDMA(0x1D, 0x5, Width32Bit, )\r
1031 })\r
1032\r
1033 Method (SSCN, 0x0, NotSerialized)\r
1034 {\r
1035 Name (PKG, Package(3) { 0x200, 0x200, 0x06 })\r
1036 Return (PKG)\r
1037 }\r
1038 Method (FMCN, 0x0, NotSerialized)\r
1039 {\r
1040 Name (PKG, Package(3) { 0x55, 0x99, 0x06 })\r
1041 Return (PKG)\r
1042 }\r
1043 Method (FPCN, 0x0, NotSerialized)\r
1044 {\r
1045 Name (PKG, Package(3) { 0x1b, 0x3a, 0x06 })\r
1046 Return (PKG)\r
1047 }\r
1048\r
1049 Method (_HRV, 0x0, NotSerialized)\r
1050 {\r
1051 Return (SOCS)\r
1052 }\r
1053\r
1054 Method (_CRS, 0x0, NotSerialized)\r
1055 {\r
1056 CreateDwordField(^RBUF, ^BAR0._BAS, B0BA)\r
1057 CreateDwordField(^RBUF, ^BAR0._LEN, B0LN)\r
1058 Store(I70A, B0BA)\r
1059 Store(I70L, B0LN)\r
1060 Return (RBUF)\r
1061 }\r
1062\r
1063 Method (_STA, 0x0, NotSerialized)\r
1064 {\r
1065 //\r
1066 // PCIM>> 0:ACPI mode 1:PCI mode\r
1067 //\r
1068 If (LEqual(PCIM, 1)) {\r
1069 Return (0x0)\r
1070 }\r
1071\r
1072 If (LOr(LEqual(I70A, 0), LEqual(L27D, 1)))\r
1073 {\r
1074 Return (0x0)\r
1075 }\r
1076 Return (0xF)\r
1077 }\r
1078\r
1079 Method (_PS3, 0, NotSerialized)\r
1080 {\r
1081 OR(PSAT, 0x00000003, PSAT)\r
1082 OR(PSAT, 0X00000000, PSAT)\r
1083 }\r
1084\r
1085 Method (_PS0, 0, NotSerialized)\r
1086 {\r
1087 And(PSAT, 0xfffffffC, PSAT)\r
1088 OR(PSAT, 0X00000000, PSAT)\r
1089 }\r
1090\r
1091 OperationRegion (KEYS, SystemMemory, I71A, 0x100)\r
1092 Field (KEYS, DWordAcc, NoLock, WriteAsZeros)\r
1093 {\r
1094 Offset (0x84),\r
1095 PSAT, 32\r
1096 }\r
1097\r
1098}\r
1099\r