Debian Codegraph @

src/soc/intel/pantherlake/acpi/gpio.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <soc/gpio_defs.h>
4 #include <soc/intel/common/acpi/gpio.asl>
5 #include <soc/intel/common/block/acpi/acpi/gpio_op.asl>
6 #include <soc/irq.h>
7 #include <soc/pcr_ids.h>
8
9 #define GPIO_SW_REVISION 0x00010000
10
11 /*
12 * Get GPIO DW0 Address
13 * Arg0 - GPIO Number
14 */
15 Method (GADD, 1, NotSerialized)
16 {
17 /* GPIO Community 0 */
18 If (Arg0 >= COM0_GRP_PAD_START && Arg0 <= COM0_GRP_PAD_END)
19 {
20 Local0 = PID_GPIOCOM0
21 Local1 = Arg0 - COM0_GRP_PAD_START
22 }
23 /* GPIO Community 1 */
24 If (Arg0 >= COM1_GRP_PAD_START && Arg0 <= COM1_GRP_PAD_END)
25 {
26 Local0 = PID_GPIOCOM1
27 Local1 = Arg0 - COM1_GRP_PAD_START
28 }
29 /* GPIO Community 3 */
30 If (Arg0 >= COM3_GRP_PAD_START && Arg0 <= COM3_GRP_PAD_END)
31 {
32 Local0 = PID_GPIOCOM3
33 Local1 = Arg0 - COM3_GRP_PAD_START
34 }
35 /* GPIO Community 4 */
36 If (Arg0 >= COM4_GRP_PAD_START && Arg0 <= COM4_GRP_PAD_END)
37 {
38 Local0 = PID_GPIOCOM4
39 Local1 = Arg0 - COM4_GRP_PAD_START
40 }
41 /* GPIO Community 5*/
42 If (Arg0 >= COM5_GRP_PAD_START && Arg0 <= COM5_GRP_PAD_END)
43 {
44 Local0 = PID_GPIOCOM5
45 Local1 = Arg0 - COM5_GRP_PAD_START
46 }
47
48 Local2 = PCRB(Local0) + PAD_CFG_BASE + (Local1 * 16)
49 Return (Local2)
50 }
51
52 /*
53 * Return PCR Port ID of GPIO Communities
54 *
55 * Arg0: GPIO Community (0-5)
56 */
57 Method (GPID, 1, Serialized)
58 {
59 Switch (ToInteger (Arg0))
60 {
61 Case (COMM_0) {
62 Local0 = PID_GPIOCOM0
63 }
64 Case (COMM_1) {
65 Local0 = PID_GPIOCOM1
66 }
67 Case (COMM_3) {
68 Local0 = PID_GPIOCOM3
69 }
70 Case (COMM_4) {
71 Local0 = PID_GPIOCOM4
72 }
73 Case (COMM_5) {
74 Local0 = PID_GPIOCOM5
75 }
76 Default {
77 Return (0)
78 }
79 }
80
81 Return (Local0)
82 }
83
84 /* GPIO Power Management bits */
85 Name(GPMB, Package(TOTAL_GPIO_COMM) {0, 0, 0, 0, 0})
86
87 /*
88 * Save GPIO Power Management bits
89 */
90 Method (SGPM, 0, Serialized)
91 {
92 For (Local0 = 0, Local0 < TOTAL_GPIO_COMM, Local0++)
93 {
94 Local1 = GPID (Local0)
95 GPMB[Local0] = PCRR (Local1, GPIO_MISCCFG)
96 }
97 }
98
99 /*
100 * Restore GPIO Power Management bits
101 */
102 Method (RGPM, 0, Serialized)
103 {
104 For (Local0 = 0, Local0 < TOTAL_GPIO_COMM, Local0++)
105 {
106 CGPM (Local0, DerefOf(GPMB[Local0]))
107 }
108 }
109
110 /*
111 * Save current setting of GPIO Power Management bits and
112 * enable all Power Management bits for all communities
113 */
114 Method (EGPM, 0, Serialized)
115 {
116 /* Save current setting and will restore it when resuming */
117 SGPM ()
118 /* Enable PM bits */
119 For (Local0 = 0, Local0 < TOTAL_GPIO_COMM, Local0++)
120 {
121 CGPM (Local0, MISCCFG_GPIO_PM_CONFIG_BITS)
122 }
123 }
124
125 /*
126 * GPIO _CRS
127 * Returns Interrupt and memory resources required for GPIO controller
128 *
129 * Arg0 - GPIO Port ID Offset for given community
130 */
131 Method (GCRS, 0x1, Serialized) {
132 Name (RBFL,ResourceTemplate() {
133 Interrupt (ResourceConsumer, Level, ActiveLow, Shared,,, GIRQ) {
134 GPIO_IRQ14
135 }
136 QWordMemory (
137 ResourceConsumer, ,
138 MinFixed,
139 MaxFixed,
140 NonCacheable,
141 ReadWrite,
142 0x0, /* AddressGranularity */
143 0x0000000000000000, /* AddressMinimum _MIN */
144 0x000000000000FFFF, /* AddressMaximum _MAX */
145 0x0, /* AddressTranslation */
146 GPIO_BASE_SIZE, /* RangeLength _LEN */
147 , ,
148 RBL0,
149 AddressRangeMemory,
150 )
151 })
152 CreateQWordField (RBFL, RBL0._MIN, CML0)
153 CreateQWordField (RBFL, RBL0._MAX, CMX0)
154 CML0 = PCRB (Arg0)
155 CMX0 = CML0 + GPIO_BASE_SIZE - 1
156 Return (RBFL)
157 }
158
159 /* GPIO Community 0: GPP_V, GPP_C */
160 Device (GPI0)
161 {
162 Name (_HID, ACPI_GPIO_HID)
163 Name (_CID, ACPI_GPIO_CID)
164 Name (_UID, GPP_COMM0_ID)
165 Name (_DDN, "GPIO Controller 0")
166
167 Method (_CRS, 0, NotSerialized)
168 {
169 Return (^^GCRS (PID_GPIOCOM0))
170 }
171
172 Name (_DSD, Package (0x04)
173 {
174 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
175 Package (0x08)
176 {
177 Package (0x02)
178 {
179 "intc-gpio-sw-revision",
180 GPIO_SW_REVISION
181 },
182
183 Package (0x02)
184 {
185 "intc-gpio-community-name",
186 GPP_COMM0_NAME
187 },
188
189 Package (0x02)
190 {
191 "intc-gpio-group-count",
192 NUM_COM0_GROUPS
193 },
194
195 Package (0x02)
196 {
197 "intc-gpio-pad-ownership-offset",
198 PAD_OWN_REG_0
199 },
200
201 Package (0x02)
202 {
203 "intc-gpio-pad-configuration-lock-offset",
204 PAD_CFG_LOCK_REG_0
205 },
206
207 Package (0x02)
208 {
209 "intc-gpio-host-software-pad-ownership-offset",
210 HOSTSW_OWN_REG_0
211 },
212
213 Package (0x02)
214 {
215 "intc-gpio-gpi-interrupt-status-offset",
216 GPI_INT_STS_0
217 },
218
219 Package (0x02)
220 {
221 "intc-gpio-gpi-interrupt-enable-offset",
222 GPI_INT_EN_0
223 }
224 },
225
226 ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
227 Package (0x02)
228 {
229 Package (0x02)
230 {
231 "intc-gpio-group-0-subproperties",
232 "GPPV"
233 },
234
235 Package (0x02)
236 {
237 "intc-gpio-group-1-subproperties",
238 "GPPC"
239 }
240 }
241 })
242
243 /* first bank/group in community 0: GPP_V */
244 Name (GPPV, Package (0x02)
245 {
246 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
247 Package (0x03)
248 {
249 Package (0x02)
250 {
251 "intc-gpio-group-name",
252 GPP_V_NAME
253 },
254
255 Package (0x02)
256 {
257 "intc-gpio-pad-count",
258 NUM_GRP_V_PADS
259 },
260
261 Package (0x02)
262 {
263 "intc-gpio-group-offset",
264 GPP_V_START_OFFSET
265 }
266 }
267 })
268
269 /* 2nd bank/group in community 0: GPP_C */
270 Name (GPPC, Package (0x02)
271 {
272 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
273 Package (0x03)
274 {
275 Package (0x02)
276 {
277 "intc-gpio-group-name",
278 GPP_C_NAME
279 },
280
281 Package (0x02)
282 {
283 "intc-gpio-pad-count",
284 NUM_GRP_C_PADS
285 },
286
287 Package (0x02)
288 {
289 "intc-gpio-group-offset",
290 GPP_C_START_OFFSET
291 }
292 }
293 })
294
295 Method (_STA, 0, NotSerialized)
296 {
297 Return (0xF)
298 }
299 }
300
301 /* GPIO Community 1: GPP_F, GPP_E */
302 Device (GPI1)
303 {
304 Name (_HID, ACPI_GPIO_HID)
305 Name (_CID, ACPI_GPIO_CID)
306 Name (_UID, GPP_COMM1_ID)
307 Name (_DDN, "GPIO Controller 1")
308
309 Method (_CRS, 0, NotSerialized)
310 {
311 Return (^^GCRS (PID_GPIOCOM1))
312 }
313
314 Name (_DSD, Package (0x04)
315 {
316 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
317 Package (0x08)
318 {
319 Package (0x02)
320 {
321 "intc-gpio-sw-revision",
322 GPIO_SW_REVISION
323 },
324
325 Package (0x02)
326 {
327 "intc-gpio-community-name",
328 GPP_COMM1_NAME
329 },
330
331 Package (0x02)
332 {
333 "intc-gpio-group-count",
334 NUM_COM1_GROUPS
335 },
336
337 Package (0x02)
338 {
339 "intc-gpio-pad-ownership-offset",
340 PAD_OWN_REG_0
341 },
342
343 Package (0x02)
344 {
345 "intc-gpio-pad-configuration-lock-offset",
346 PAD_CFG_LOCK_REG_0
347 },
348
349 Package (0x02)
350 {
351 "intc-gpio-host-software-pad-ownership-offset",
352 HOSTSW_OWN_REG_0
353 },
354
355 Package (0x02)
356 {
357 "intc-gpio-gpi-interrupt-status-offset",
358 GPI_INT_STS_0
359 },
360
361 Package (0x02)
362 {
363 "intc-gpio-gpi-interrupt-enable-offset",
364 GPI_INT_EN_0
365 }
366 },
367
368 ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
369 Package (0x02)
370 {
371 Package (0x02)
372 {
373 "intc-gpio-group-0-subproperties",
374 "GPPF"
375 },
376
377 Package (0x02)
378 {
379 "intc-gpio-group-1-subproperties",
380 "GPPE"
381 },
382
383 }
384 })
385 /* first bank/group in community 1: GPP_F */
386 Name (GPPF, Package (0x02)
387 {
388 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
389 Package (0x03)
390 {
391 Package (0x02)
392 {
393 "intc-gpio-group-name",
394 GPP_F_NAME
395 },
396
397 Package (0x02)
398 {
399 "intc-gpio-pad-count",
400 NUM_GRP_F_PADS
401 },
402
403 Package (0x02)
404 {
405 "intc-gpio-group-offset",
406 GPP_F_START_OFFSET
407 }
408 }
409 })
410 /* 2nd bank/group in community 1: GPP_E */
411 Name (GPPE, Package (0x02)
412 {
413 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
414 Package (0x03)
415 {
416 Package (0x02)
417 {
418 "intc-gpio-group-name",
419 GPP_E_NAME
420 },
421
422 Package (0x02)
423 {
424 "intc-gpio-pad-count",
425 NUM_GRP_E_PADS
426 },
427
428 Package (0x02)
429 {
430 "intc-gpio-group-offset",
431 GPP_E_START_OFFSET
432 }
433 }
434 })
435 Method (_STA, 0, NotSerialized)
436 {
437 Return (0xF)
438 }
439 }
440
441 /* GPIO Community 3: CPUJTAG (reserved), GPP_H, GPP_A, VGPIO3 */
442 Device (GPI3)
443 {
444 Name (_HID, ACPI_GPIO_HID)
445 Name (_CID, ACPI_GPIO_CID)
446 Name (_UID, GPP_COMM3_ID)
447 Name (_DDN, "GPIO Controller 2")
448
449 Method (_CRS, 0, NotSerialized)
450 {
451 Return (^^GCRS (PID_GPIOCOM3))
452 }
453
454 Name (_DSD, Package (0x04)
455 {
456 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
457 Package (0x08)
458 {
459 Package (0x02)
460 {
461 "intc-gpio-sw-revision",
462 GPIO_SW_REVISION
463 },
464
465 Package (0x02)
466 {
467 "intc-gpio-community-name",
468 GPP_COMM3_NAME
469 },
470
471 Package (0x02)
472 {
473 "intc-gpio-group-count",
474 NUM_COM3_GROUPS
475 },
476
477 Package (0x02)
478 {
479 "intc-gpio-pad-ownership-offset",
480 PAD_OWN_REG_0
481 },
482
483 Package (0x02)
484 {
485 "intc-gpio-pad-configuration-lock-offset",
486 PAD_CFG_LOCK_REG_0
487 },
488
489 Package (0x02)
490 {
491 "intc-gpio-host-software-pad-ownership-offset",
492 HOSTSW_OWN_REG_0
493 },
494
495 Package (0x02)
496 {
497 "intc-gpio-gpi-interrupt-status-offset",
498 GPI_INT_STS_0
499 },
500
501 Package (0x02)
502 {
503 "intc-gpio-gpi-interrupt-enable-offset",
504 GPI_INT_EN_0
505 }
506 },
507
508 ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
509 #if CONFIG(SOC_INTEL_WILDCATLAKE)
510 Package (0x03)
511 {
512 Package (0x02)
513 {
514 "intc-gpio-group-0-subproperties",
515 "GPPH"
516 },
517
518 Package (0x02)
519 {
520 "intc-gpio-group-1-subproperties",
521 "GPPA"
522 },
523
524 Package (0x02)
525 {
526 "intc-gpio-group-2-subproperties",
527 "VGP3"
528 }
529 }
530 #else
531 Package (0x04)
532 {
533 Package (0x02)
534 {
535 "intc-gpio-group-0-subproperties",
536 "RSVD"
537 },
538
539 Package (0x02)
540 {
541 "intc-gpio-group-1-subproperties",
542 "GPPH"
543 },
544
545 Package (0x02)
546 {
547 "intc-gpio-group-2-subproperties",
548 "GPPA"
549 },
550
551 Package (0x02)
552 {
553 "intc-gpio-group-3-subproperties",
554 "VGP3"
555 }
556 }
557 #endif
558 })
559 #if CONFIG(SOC_INTEL_PANTHERLAKE)
560 /* first bank/group in community 3: RSVD */
561 Name (RSVD, Package (0x02)
562 {
563 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
564 Package (0x03)
565 {
566 Package (0x02)
567 {
568 "intc-gpio-group-name",
569 "RSVD"
570 },
571
572 Package (0x02)
573 {
574 "intc-gpio-pad-count",
575 NUM_GRP_RSVD_PADS
576 },
577
578 Package (0x02)
579 {
580 "intc-gpio-group-offset",
581 GPP_RSVD_START_OFFSET
582 }
583 }
584 })
585 #endif
586 /* 2nd bank/group in community 3: GPP_H */
587 Name (GPPH, Package (0x02)
588 {
589 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
590 Package (0x03)
591 {
592 Package (0x02)
593 {
594 "intc-gpio-group-name",
595 GPP_H_NAME
596 },
597
598 Package (0x02)
599 {
600 "intc-gpio-pad-count",
601 NUM_GRP_H_PADS
602 },
603
604 Package (0x02)
605 {
606 "intc-gpio-group-offset",
607 GPP_H_START_OFFSET
608 }
609 }
610 })
611
612 /* 3rd bank/group in community 3: GPP_A */
613 Name (GPPA, Package (0x02)
614 {
615 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
616 Package (0x03)
617 {
618 Package (0x02)
619 {
620 "intc-gpio-group-name",
621 GPP_A_NAME
622 },
623
624 Package (0x02)
625 {
626 "intc-gpio-pad-count",
627 NUM_GRP_A_PADS
628 },
629
630 Package (0x02)
631 {
632 "intc-gpio-group-offset",
633 GPP_A_START_OFFSET
634 }
635 }
636 })
637
638 /* 4th bank/group in community 3: VGPIO3 */
639 Name (VGP3, Package (0x02)
640 {
641 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
642 Package (0x03)
643 {
644 Package (0x02)
645 {
646 "intc-gpio-group-name",
647 GPP_VGPIO3_NAME
648 },
649
650 Package (0x02)
651 {
652 "intc-gpio-pad-count",
653 NUM_GRP_VGPIO3_PADS
654 },
655
656 Package (0x02)
657 {
658 "intc-gpio-group-offset",
659 GPP_VGPIO3_START_OFFSET
660 }
661 }
662 })
663
664 Method (_STA, 0, NotSerialized)
665 {
666 Return (0xF)
667 }
668 }
669
670 /* GPIO Community 4: GPP_S */
671 Device (GPI4)
672 {
673 Name (_HID, ACPI_GPIO_HID)
674 Name (_CID, ACPI_GPIO_CID)
675 Name (_UID, GPP_COMM4_ID)
676 Name (_DDN, "GPIO Controller 3")
677
678 Method (_CRS, 0, NotSerialized)
679 {
680 Return (^^GCRS (PID_GPIOCOM4))
681 }
682
683 Name (_DSD, Package (0x04)
684 {
685 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
686 Package (0x08)
687 {
688 Package (0x02)
689 {
690 "intc-gpio-sw-revision",
691 GPIO_SW_REVISION
692 },
693
694 Package (0x02)
695 {
696 "intc-gpio-community-name",
697 GPP_COMM4_NAME
698 },
699
700 Package (0x02)
701 {
702 "intc-gpio-group-count",
703 NUM_COM4_GROUPS
704 },
705
706 Package (0x02)
707 {
708 "intc-gpio-pad-ownership-offset",
709 PAD_OWN_REG_0
710 },
711
712 Package (0x02)
713 {
714 "intc-gpio-pad-configuration-lock-offset",
715 PAD_CFG_LOCK_REG_0
716 },
717
718 Package (0x02)
719 {
720 "intc-gpio-host-software-pad-ownership-offset",
721 HOSTSW_OWN_REG_0
722 },
723
724 Package (0x02)
725 {
726 "intc-gpio-gpi-interrupt-status-offset",
727 GPI_INT_STS_0
728 },
729
730 Package (0x02)
731 {
732 "intc-gpio-gpi-interrupt-enable-offset",
733 GPI_INT_EN_0
734 }
735 },
736
737 ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
738 #if CONFIG(SOC_INTEL_WILDCATLAKE)
739 Package (0x02)
740 {
741 Package (0x02)
742 {
743 "intc-gpio-group-0-subproperties",
744 "GPPS"
745 },
746
747 Package (0x02)
748 {
749 "intc-gpio-group-1-subproperties",
750 "RSVD"
751 }
752 }
753 #else
754 Package (0x01)
755 {
756 Package (0x02)
757 {
758 "intc-gpio-group-0-subproperties",
759 "GPPS"
760 }
761 }
762 #endif
763 })
764 /* only bank/group in community 4: GPP_S */
765 Name (GPPS, Package (0x02)
766 {
767 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
768 Package (0x03)
769 {
770 Package (0x02)
771 {
772 "intc-gpio-group-name",
773 GPP_S_NAME
774 },
775
776 Package (0x02)
777 {
778 "intc-gpio-pad-count",
779 NUM_GRP_S_PADS
780 },
781
782 Package (0x02)
783 {
784 "intc-gpio-group-offset",
785 GPP_S_START_OFFSET
786 }
787 }
788 })
789 #if CONFIG(SOC_INTEL_WILDCATLAKE)
790 /* second bank/group in community 4: RSVD */
791 Name (RSVD, Package (0x02)
792 {
793 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
794 Package (0x03)
795 {
796 Package (0x02)
797 {
798 "intc-gpio-group-name",
799 "RSVD"
800 },
801
802 Package (0x02)
803 {
804 "intc-gpio-pad-count",
805 NUM_GRP_RSVD_PADS
806 },
807
808 Package (0x02)
809 {
810 "intc-gpio-group-offset",
811 GPP_RSVD_START_OFFSET
812 }
813 }
814 })
815 #endif
816 Method (_STA, 0, NotSerialized)
817 {
818 Return (0xF)
819 }
820 }
821
822 /* GPIO Community 5: GPP_B, GPP_D, VGPIO */
823 Device (GPI5)
824 {
825 Name (_HID, ACPI_GPIO_HID)
826 Name (_CID, ACPI_GPIO_CID)
827 Name (_UID, GPP_COMM5_ID)
828 Name (_DDN, "GPIO Controller 4")
829
830 Method (_CRS, 0, NotSerialized)
831 {
832 Return (^^GCRS (PID_GPIOCOM5))
833 }
834
835 Name (_DSD, Package (0x04)
836 {
837 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
838 Package (0x08)
839 {
840 Package (0x02)
841 {
842 "intc-gpio-sw-revision",
843 GPIO_SW_REVISION
844 },
845
846 Package (0x02)
847 {
848 "intc-gpio-community-name",
849 GPP_COMM5_NAME
850 },
851
852 Package (0x02)
853 {
854 "intc-gpio-group-count",
855 NUM_COM5_GROUPS
856 },
857
858 Package (0x02)
859 {
860 "intc-gpio-pad-ownership-offset",
861 // 0xD0
862 PAD_OWN_REG_0
863 },
864
865 Package (0x02)
866 {
867 "intc-gpio-pad-configuration-lock-offset",
868 PAD_CFG_LOCK_REG_0
869 },
870
871 Package (0x02)
872 {
873 "intc-gpio-host-software-pad-ownership-offset",
874 HOSTSW_OWN_REG_0
875 },
876
877 Package (0x02)
878 {
879 "intc-gpio-gpi-interrupt-status-offset",
880 GPI_INT_STS_0
881 },
882
883 Package (0x02)
884 {
885 "intc-gpio-gpi-interrupt-enable-offset",
886 GPI_INT_EN_0
887 }
888 },
889
890 ToUUID ("dbb8e3e6-5886-4ba6-8795-1319f52a966b"),
891 Package (0x03)
892 {
893 Package (0x02)
894 {
895 "intc-gpio-group-0-subproperties",
896 "GPPB"
897 },
898
899 Package (0x02)
900 {
901 "intc-gpio-group-1-subproperties",
902 "GPPD"
903 },
904
905 Package (0x02)
906 {
907 "intc-gpio-group-2-subproperties",
908 "VGP0"
909 }
910 }
911 })
912 /* first bank/group in community 5: GPP_B */
913 Name (GPPB, Package (0x02)
914 {
915 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
916 Package (0x03)
917 {
918 Package (0x02)
919 {
920 "intc-gpio-group-name",
921 GPP_B_NAME
922 },
923
924 Package (0x02)
925 {
926 "intc-gpio-pad-count",
927 NUM_GRP_B_PADS
928 },
929
930 Package (0x02)
931 {
932 "intc-gpio-group-offset",
933 GPP_B_START_OFFSET
934 }
935 }
936 })
937 /* 2nd bank/group in community 5: GPP_D */
938 Name (GPPD, Package (0x02)
939 {
940 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
941 Package (0x03)
942 {
943 Package (0x02)
944 {
945 "intc-gpio-group-name",
946 GPP_D_NAME
947 },
948
949 Package (0x02)
950 {
951 "intc-gpio-pad-count",
952 NUM_GRP_D_PADS
953 },
954
955 Package (0x02)
956 {
957 "intc-gpio-group-offset",
958 GPP_D_START_OFFSET
959 }
960 }
961 })
962 /* 3rd bank/group in community 5: VGPIO */
963 Name (VGP0, Package (0x02)
964 {
965 ToUUID ("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
966 Package (0x03)
967 {
968 Package (0x02)
969 {
970 "intc-gpio-group-name",
971 GPP_VGPIO_NAME
972 },
973
974 Package (0x02)
975 {
976 "intc-gpio-pad-count",
977 NUM_GRP_VGPIO_PADS
978 },
979
980 Package (0x02)
981 {
982 "intc-gpio-group-offset",
983 GPP_VGPIO_START_OFFSET
984 }
985 }
986 })
987
988 Method (_STA, 0, NotSerialized)
989 {
990 Return (0xF)
991 }
992 }