1 /* This file is part of the coreboot project. */
2 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 /* Enable ACPI _SWS methods */
5 #include <soc/intel/common/acpi/acpi_wake_source.asl>
7 Name (_S0, Package (0x04) // mandatory system state
12 Name (_S5, Package (0x04) // mandatory system state
14 0x07, 0x00, 0x00, 0x00
17 /* The APM port can be used for generating software SMIs */
18 OperationRegion (APMP, SystemIO, 0xb2, 2)
19 Field (APMP, ByteAcc, NoLock, Preserve)
21 APMC, 8, // APM command
26 OperationRegion (DBG0, SystemIO, 0x80, 0x02)
27 Field (DBG0, ByteAcc, Lock, Preserve)
34 * This is the ACPI->SMI communication interface.
36 OperationRegion (IO_T, SystemIO, 0x800, 0x10)
37 Field (IO_T, ByteAcc, NoLock, Preserve)
40 TRP0, 8 /* IO-Trap at 0x808 */
43 OperationRegion (PSYS, SystemMemory, 0x6D081000, 0x0400)
44 Field (PSYS, ByteAcc, NoLock, Preserve)
46 PLAT, 32, // Platform ID
49 APC0, 1, // PCH IOAPIC Enable
50 AP00, 1, // PC00 IOAPIC Enable
51 AP01, 1, // PC01 IOAPIC Enable
52 AP02, 1, // PC02 IOAPIC Enable
53 AP03, 1, // PC03 IOAPIC Enable
54 AP04, 1, // PC04 IOAPIC Enable
55 AP05, 1, // PC05 IOAPIC Enable
56 AP06, 1, // PC06 IOAPIC Enable
57 AP07, 1, // PC07 IOAPIC Enable
58 AP08, 1, // PC08 IOAPIC Enable
59 AP09, 1, // PC09 IOAPIC Enable
60 AP10, 1, // PC10 IOAPIC Enable
61 AP11, 1, // PC11 IOAPIC Enable
62 AP12, 1, // PC12 IOAPIC Enable
63 AP13, 1, // PC13 IOAPIC Enable
64 AP14, 1, // PC14 IOAPIC Enable
65 AP15, 1, // PC15 IOAPIC Enable
66 AP16, 1, // PC16 IOAPIC Enable
67 AP17, 1, // PC17 IOAPIC Enable
68 AP18, 1, // PC18 IOAPIC Enable
69 AP19, 1, // PC19 IOAPIC Enable
70 AP20, 1, // PC20 IOAPIC Enable
71 AP21, 1, // PC21 IOAPIC Enable
72 AP22, 1, // PC22 IOAPIC Enable
73 AP23, 1, // PC23 IOAPIC Enable
75 SKOV, 1, // Override Socket APIC Id
119 TSSY, 32, // TODO: This is TSSZ in system booted from production FW
331 Method (TRAP, 1, Serialized)
333 Store (Arg0, SMIF) // SMI Function
334 Store (0, TRP0) // Generate trap
335 Return (SMIF) // Return value of SMI handler
339 * The _PIC method is called by the OS to choose between interrupt
340 * routing via the i8259 interrupt controller or the APIC.
342 * _PIC is called with a parameter of 0 for i8259 configuration and
343 * with a parameter of 1 for Local Apic/IOAPIC configuration.
348 /* Remember the OS' IRQ routing choice. */
353 * The _PTS method (Prepare To Sleep) is called before the OS is
354 * entering a sleep state. The sleep state number is passed in Arg0
361 /* The _WAK method is called on system wakeup */
365 Return (Package (){ 0, 0 })