Debian Codegraph @

src/mainboard/kontron/ktqm77/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 /* Let suspend LED flash slowly in S3 and S4 */
10 If ((Arg0 == 3) || (Arg0 == 4))
11 {
12 \_SB.PCI0.LPCB.SIO0.SUSL (0x06)
13 }
14 Else
15 {
16 \_SB.PCI0.LPCB.SIO0.SUSL (0x02)
17 }
18 }
19
20 /* The _WAK method is called on system wakeup */
21
22 Method(_WAK,1)
23 {
24 /* Disable suspend LED during normal operation */
25 \_SB.PCI0.LPCB.SIO0.SUSL (0x02)
26 Return(Package(){0,0})
27 }