diff options
author | Tom Rini <trini@konsulko.com> | 2016-05-30 13:56:26 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-30 13:56:26 -0400 |
commit | f3c264f9de6a5727c90ecf6d46d4747091c0a57f (patch) | |
tree | 1dad8f917d3c882d197d3616c9badd81120707ba /arch/x86/include/asm/acpi/irqroute.asl | |
parent | e4a94ce4ac77396b181663c0493c50bc2d5b9143 (diff) | |
parent | d3d664725b4a05cf32d905ff806b44bb01fa61c0 (diff) | |
download | talos-obmc-uboot-f3c264f9de6a5727c90ecf6d46d4747091c0a57f.tar.gz talos-obmc-uboot-f3c264f9de6a5727c90ecf6d46d4747091c0a57f.zip |
Merge branch 'master' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'arch/x86/include/asm/acpi/irqroute.asl')
-rw-r--r-- | arch/x86/include/asm/acpi/irqroute.asl | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/x86/include/asm/acpi/irqroute.asl b/arch/x86/include/asm/acpi/irqroute.asl new file mode 100644 index 0000000000..64d38207d9 --- /dev/null +++ b/arch/x86/include/asm/acpi/irqroute.asl @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2007-2009 coresystems GmbH + * Copyright (C) 2013 Google Inc. + * Copyright (C) 2016 Bin Meng <bmeng.cn@gmail.com> + * + * Modified from coreboot src/soc/intel/baytrail/acpi/irqroute.asl + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +Name(\PICM, 0) + +/* + * 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) +} + +/* PCI interrupt routing */ +Method(_PRT) { + If (PICM) { + Return (Package() { + #undef PIC_MODE + #include "irq_helper.h" + PCI_DEV_PIRQ_ROUTES + }) + } Else { + Return (Package() { + #define PIC_MODE + #include "irq_helper.h" + PCI_DEV_PIRQ_ROUTES + }) + } + +} + +/* PCIe downstream ports interrupt routing */ +PCIE_BRIDGE_IRQ_ROUTES +#undef PIC_MODE +#include "irq_helper.h" +PCIE_BRIDGE_IRQ_ROUTES |