From c2363d0fa4f8d7564baf1d259971b804dac3fbc4 Mon Sep 17 00:00:00 2001 From: Mario Scheithauer Date: Mon, 17 Jul 2017 13:28:56 +0200 Subject: soc/intel/apollolake: Implement _PIC method into ACPI The _PIC method is called by the OS to choose between interrupt routing via the i8259 interrupt controller or the APIC. Change-Id: I2bc16f9c096c095c02de3692e76c0906cec54cb5 Signed-off-by: Mario Scheithauer Reviewed-on: https://review.coreboot.org/20617 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin --- src/soc/intel/apollolake/acpi/platform.asl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/soc/intel/apollolake/acpi') diff --git a/src/soc/intel/apollolake/acpi/platform.asl b/src/soc/intel/apollolake/acpi/platform.asl index f3202a0c48..ec1844a512 100644 --- a/src/soc/intel/apollolake/acpi/platform.asl +++ b/src/soc/intel/apollolake/acpi/platform.asl @@ -18,3 +18,19 @@ /* Enable ACPI _SWS methods */ #include #include + +Name(\PICM, Zero) // IOAPIC/8259 + +/* + * 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. */ + Store (Arg0, PICM) +} -- cgit v1.2.3