| 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 |
#include <southbridge/intel/common/acpi/sleepstates.asl> |
| 6 |
|
| 7 |
/* The APM port can be used for generating software SMIs */ |
| 8 |
OperationRegion (APMP, SystemIO, 0xb2, 2) |
| 9 |
Field (APMP, ByteAcc, NoLock, Preserve) |
| 10 |
{ |
| 11 |
APMC, 8, // APM command |
| 12 |
APMS, 8 // APM status |
| 13 |
} |
| 14 |
|
| 15 |
/* Port 80 POST */ |
| 16 |
OperationRegion (DBG0, SystemIO, 0x80, 0x02) |
| 17 |
Field (DBG0, ByteAcc, Lock, Preserve) |
| 18 |
{ |
| 19 |
IO80, 8, |
| 20 |
IO81, 8 |
| 21 |
} |
| 22 |
|
| 23 |
/* |
| 24 |
* The _PTS method (Prepare To Sleep) is called before the OS is |
| 25 |
* entering a sleep state. The sleep state number is passed in Arg0 |
| 26 |
*/ |
| 27 |
|
| 28 |
Method (_PTS, 1) |
| 29 |
{ |
| 30 |
} |
| 31 |
|
| 32 |
/* The _WAK method is called on system wakeup */ |
| 33 |
|
| 34 |
Method (_WAK, 1) |
| 35 |
{ |
| 36 |
Return (Package (){ 0, 0 }) |
| 37 |
} |