Debian Codegraph @

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

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 #include <southbridge/intel/common/acpi/platform.asl>
4
5 /* The _PTS method (Prepare To Sleep) is called before the OS is
6 * entering a sleep state. The sleep state number is passed in Arg0
7 */
8
9 Method(_PTS,1)
10 {
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.ACEX
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.LIDS
26 if (Local0 != \LIDS) {
27 \LIDS = Local0
28 Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
29 }
30
31 Return(Package(){0,0})
32 }