Debian Codegraph @

src/mainboard/ocp/deltalake/acpi/platform.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 /* Enable ACPI _SWS methods */
4 #include <soc/intel/common/acpi/acpi_wake_source.asl>
5
6 Name (_S0, Package () // mandatory system state
7 {
8 0x00, 0x00, 0x00, 0x00
9 })
10
11 Name (_S5, Package () // mandatory system state
12 {
13 0x07, 0x00, 0x00, 0x00
14 })
15
16 /* The APM port can be used for generating software SMIs */
17 OperationRegion (APMP, SystemIO, 0xb2, 2)
18 Field (APMP, ByteAcc, NoLock, Preserve)
19 {
20 APMC, 8, // APM command
21 APMS, 8 // APM status
22 }
23
24 #include <arch/x86/acpi/post.asl>
25
26 /*
27 * The _PTS method (Prepare To Sleep) is called before the OS is
28 * entering a sleep state. The sleep state number is passed in Arg0
29 */
30
31 Method (_PTS, 1)
32 {
33 }
34
35 /* The _WAK method is called on system wakeup */
36
37 Method (_WAK, 1)
38 {
39 Return (Package (){ 0, 0 })
40 }