2021-01-21 07:17:00 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2021-01-19 13:12:19 +01:00
|
|
|
|
|
|
|
#include <acpi/acpigen_extern.asl>
|
2021-01-12 14:23:25 +01:00
|
|
|
|
|
|
|
#if CONFIG(CHROMEOS)
|
2021-01-20 22:02:16 +01:00
|
|
|
/* Chrome OS specific */
|
2021-01-12 14:23:25 +01:00
|
|
|
#include <vendorcode/google/chromeos/acpi/gnvs.asl>
|
2021-01-20 22:02:16 +01:00
|
|
|
#include <vendorcode/google/chromeos/acpi/chromeos.asl>
|
2021-01-12 14:23:25 +01:00
|
|
|
#endif
|
2021-01-15 12:46:11 +01:00
|
|
|
|
2020-12-29 08:04:30 +01:00
|
|
|
/* Operating system enumeration. */
|
|
|
|
Name (OSYS, 0)
|
|
|
|
|
2021-01-25 16:05:35 +01:00
|
|
|
/* Zero => PIC mode, One => APIC Mode */
|
|
|
|
Name (PICM, Zero)
|
|
|
|
|
2021-01-15 12:46:11 +01:00
|
|
|
/* Power state (AC = 1) */
|
|
|
|
Name (PWRS, One)
|
2021-01-25 16:05:35 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The _PIC method is called by the OS to choose between interrupt
|
|
|
|
* routing via the i8259 interrupt controller or the APIC.
|
|
|
|
*
|
|
|
|
* _PIC is called with a parameter of 0 for i8259 configuration and
|
|
|
|
* with a parameter of 1 for Local Apic/IOAPIC configuration.
|
|
|
|
*/
|
|
|
|
|
|
|
|
Method (_PIC, 1)
|
|
|
|
{
|
|
|
|
/* Remember the OS' IRQ routing choice. */
|
|
|
|
PICM = Arg0
|
|
|
|
}
|
2021-02-13 23:06:39 +01:00
|
|
|
|
|
|
|
#if CONFIG(MMCONF_SUPPORT)
|
2021-02-14 05:58:39 +01:00
|
|
|
Scope(\_SB) {
|
|
|
|
/* Base address of PCIe config space */
|
|
|
|
Name(PCBA, CONFIG_MMCONF_BASE_ADDRESS)
|
2021-02-13 23:06:39 +01:00
|
|
|
|
2021-02-14 05:58:39 +01:00
|
|
|
/* Length of PCIe config space, 1MB each bus */
|
|
|
|
Name(PCLN, CONFIG_MMCONF_LENGTH)
|
|
|
|
|
|
|
|
/* PCIe Configuration Space */
|
|
|
|
OperationRegion(PCFG, SystemMemory, PCBA, PCLN) /* Each bus consumes 1MB */
|
|
|
|
}
|
2021-02-13 23:06:39 +01:00
|
|
|
#endif
|