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 6Name (_S0, Package () // mandatory system state 7{ 8 0x00, 0x00, 0x00, 0x00 9}) 10 11Name (_S5, Package () // mandatory system state 12{ 13 0x07, 0x00, 0x00, 0x00 14}) 15 16/* Port 80 POST */ 17OperationRegion (DBG0, SystemIO, 0x80, 0x02) 18Field (DBG0, ByteAcc, Lock, Preserve) 19{ 20 IO80, 8, 21 IO81, 8 22} 23 24/* Virtual UART on 0x3f8 */ 25Scope(\_SB) { 26 Device(COM1) { 27 Name(_HID, EisaId("PNP0501")) 28 Name(_UID, 0x01) 29 Name(_STA,0x0F) 30 Name(_CRS, ResourceTemplate() { 31 IO(Decode16, 0x03F8, 0x03F8, 0x00, 0x08) 32 IRQNoFlags() { 4 } 33 }) 34 } 35} 36 37/* 38 * The _PTS method (Prepare To Sleep) is called before the OS is 39 * entering a sleep state. The sleep state number is passed in Arg0 40 */ 41 42Method (_PTS, 1) 43{ 44} 45 46/* The _WAK method is called on system wakeup */ 47 48Method (_WAK, 1) 49{ 50 Return (Package (){ 0, 0 }) 51} 52