Debian Codegraph @

src/mainboard/google/stout/acpi/platform.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
5 */
6
7 Method(_PTS,1)
8 {
9 // Notify EC to enter S3
10 \_SB.PCI0.LPCB.EC0.S3FG = 0x01
11 }
12
13 /* The _WAK method is called on system wakeup */
14
15 Method(_WAK,1)
16 {
17 /* Update AC status */
18 Local0 = \_SB.PCI0.LPCB.EC0.ACPW
19 if (Local0 != \PWRS) {
20 \PWRS = Local0
21 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
22 }
23
24 /* Update LID status */
25 Local0 = ~\_SB.PCI0.LPCB.EC0.HPLD
26 if (Local0 != \LIDS) {
27 \LIDS = Local0
28 Notify (\_SB.LID0, 0x80)
29 }
30
31 Return(Package(){0,0})
32 }