blob: 3e6bb1c5308997e320932f7e174b49acf9cea4f4 [file] [log] [blame]
Kyösti Mälkkicf246d52021-01-21 08:17:00 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Kyösti Mälkkifa5f9b52021-01-19 14:12:19 +02002
3#include <acpi/acpigen_extern.asl>
Kyösti Mälkkiae7ac8a2021-01-12 15:23:25 +02004
5#if CONFIG(CHROMEOS)
Kyösti Mälkkiade4f352021-01-20 23:02:16 +02006/* Chrome OS specific */
Kyösti Mälkkiae7ac8a2021-01-12 15:23:25 +02007#include <vendorcode/google/chromeos/acpi/gnvs.asl>
Kyösti Mälkkiade4f352021-01-20 23:02:16 +02008#include <vendorcode/google/chromeos/acpi/chromeos.asl>
Kyösti Mälkkiae7ac8a2021-01-12 15:23:25 +02009#endif
Kyösti Mälkkid6ccbb92021-01-15 13:46:11 +020010
Kyösti Mälkkif6f12152020-12-29 09:04:30 +020011/* Operating system enumeration. */
12Name (OSYS, 0)
13
Kyösti Mälkkiaa969e82021-01-25 17:05:35 +020014/* Zero => PIC mode, One => APIC Mode */
15Name (PICM, Zero)
16
Kyösti Mälkkid6ccbb92021-01-15 13:46:11 +020017/* Power state (AC = 1) */
18Name (PWRS, One)
Kyösti Mälkkid591a5a2021-01-25 17:05:35 +020019
20/*
21 * The _PIC method is called by the OS to choose between interrupt
22 * routing via the i8259 interrupt controller or the APIC.
23 *
24 * _PIC is called with a parameter of 0 for i8259 configuration and
25 * with a parameter of 1 for Local Apic/IOAPIC configuration.
26 */
27
28Method (_PIC, 1)
29{
30 /* Remember the OS' IRQ routing choice. */
31 PICM = Arg0
32}