Debian Codegraph @

src/mainboard/google/volteer/mainboard.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 #include <intelblocks/gpio.h>
4
5 Method (PGPM, 1, Serialized)
6 {
7 For (Local0 = 0, Local0 < 6, Local0++)
8 {
9 \_SB.PCI0.CGPM (Local0, Arg0)
10 }
11 }
12
13 /*
14 * Method called from _PTS prior to system sleep state entry
15 * Enables dynamic clock gating for all 5 GPIO communities
16 */
17 Method (MPTS, 1, Serialized)
18 {
19 PGPM (MISCCFG_GPIO_PM_CONFIG_BITS)
20 }
21
22 /*
23 * Method called from _WAK prior to system sleep state wakeup
24 * Disables dynamic clock gating for all 5 GPIO communities
25 */
26 Method (MWAK, 1, Serialized)
27 {
28 PGPM (0)
29 }
30
31 /*
32 * S0ix Entry/Exit Notifications
33 * Called from \_SB.PEPD._DSM
34 */
35 Method (MS0X, 1, Serialized)
36 {
37 If (Arg0 == 1) {
38 /* S0ix Entry */
39 PGPM (MISCCFG_GPIO_PM_CONFIG_BITS)
40 } Else {
41 /* S0ix Exit */
42 PGPM (0)
43 }
44 }