Kyösti Mälkki | cf246d5 | 2021-01-21 08:17:00 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Kyösti Mälkki | fa5f9b5 | 2021-01-19 14:12:19 +0200 | [diff] [blame] | 2 | |
| 3 | #include <acpi/acpigen_extern.asl> |
Kyösti Mälkki | ae7ac8a | 2021-01-12 15:23:25 +0200 | [diff] [blame] | 4 | |
| 5 | #if CONFIG(CHROMEOS) |
Kyösti Mälkki | ade4f35 | 2021-01-20 23:02:16 +0200 | [diff] [blame] | 6 | /* Chrome OS specific */ |
Kyösti Mälkki | ae7ac8a | 2021-01-12 15:23:25 +0200 | [diff] [blame] | 7 | #include <vendorcode/google/chromeos/acpi/gnvs.asl> |
Kyösti Mälkki | ade4f35 | 2021-01-20 23:02:16 +0200 | [diff] [blame] | 8 | #include <vendorcode/google/chromeos/acpi/chromeos.asl> |
Kyösti Mälkki | ae7ac8a | 2021-01-12 15:23:25 +0200 | [diff] [blame] | 9 | #endif |
Kyösti Mälkki | d6ccbb9 | 2021-01-15 13:46:11 +0200 | [diff] [blame] | 10 | |
Kyösti Mälkki | f6f1215 | 2020-12-29 09:04:30 +0200 | [diff] [blame] | 11 | /* Operating system enumeration. */ |
| 12 | Name (OSYS, 0) |
| 13 | |
Kyösti Mälkki | aa969e8 | 2021-01-25 17:05:35 +0200 | [diff] [blame] | 14 | /* Zero => PIC mode, One => APIC Mode */ |
| 15 | Name (PICM, Zero) |
| 16 | |
Kyösti Mälkki | d6ccbb9 | 2021-01-15 13:46:11 +0200 | [diff] [blame] | 17 | /* Power state (AC = 1) */ |
| 18 | Name (PWRS, One) |
Kyösti Mälkki | d591a5a | 2021-01-25 17:05:35 +0200 | [diff] [blame] | 19 | |
| 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 | |
| 28 | Method (_PIC, 1) |
| 29 | { |
| 30 | /* Remember the OS' IRQ routing choice. */ |
| 31 | PICM = Arg0 |
| 32 | } |