1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2 3/* Enable ACPI _SWS methods */ 4#include <soc/intel/common/acpi/acpi_wake_source.asl> 5 6Name (_S0, Package (0x04) // mandatory system state 7{ 8 0x00, 0x00, 0x00, 0x00 9}) 10 11Name (_S5, Package (0x04) // mandatory system state 12{ 13 0x07, 0x00, 0x00, 0x00 14}) 15 16/* The APM port can be used for generating software SMIs */ 17OperationRegion (APMP, SystemIO, 0xb2, 2) 18Field (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 31Method (_PTS, 1) 32{ 33} 34 35/* The _WAK method is called on system wakeup */ 36 37Method (_WAK, 1) 38{ 39 Return (Package (){ 0, 0 }) 40} 41