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