x86: cougarcanyon2: Add missing chipset interrupt information
authorBin Meng <bmeng.cn@gmail.com>
Tue, 12 Jun 2018 08:26:47 +0000 (01:26 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 13 Jun 2018 01:50:57 +0000 (09:50 +0800)
Add Panther Point chipset interrupt pin/PIRQ information, and
enable the generation of PIRQ routing table and MP table.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/cougarcanyon2.dts
configs/cougarcanyon2_defconfig

index 946ba06fa9b009a767dad4b5d9fa226c2eef88b6..c1cda73d963a3987a6fedc26c9c2246270af526f 100644 (file)
@@ -5,6 +5,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/interrupt-router/intel-irq.h>
+
 /include/ "skeleton.dtsi"
 /include/ "serial.dtsi"
 /include/ "keyboard.dtsi"
                        #address-cells = <1>;
                        #size-cells = <1>;
 
+                       irq-router {
+                               compatible = "intel,irq-router";
+                               intel,pirq-config = "pci";
+                               intel,actl-8bit;
+                               intel,actl-addr = <0x44>;
+                               intel,pirq-link = <0x60 8>;
+                               intel,pirq-regmap = <
+                                       PIRQA 0
+                                       PIRQB 1
+                                       PIRQC 2
+                                       PIRQD 3
+                                       PIRQE 8
+                                       PIRQF 9
+                                       PIRQG 10
+                                       PIRQH 11
+                               >;
+                               intel,pirq-mask = <0xcee0>;
+                               intel,pirq-routing = <
+                                       /* Panther Point PCI devices */
+                                       PCI_BDF(0, 2, 0) INTA PIRQA
+                                       PCI_BDF(0, 20, 0) INTA PIRQA
+                                       PCI_BDF(0, 22, 0) INTA PIRQA
+                                       PCI_BDF(0, 22, 1) INTB PIRQB
+                                       PCI_BDF(0, 22, 2) INTC PIRQC
+                                       PCI_BDF(0, 22, 3) INTD PIRQD
+                                       PCI_BDF(0, 25, 0) INTA PIRQA
+                                       PCI_BDF(0, 26, 0) INTA PIRQA
+                                       PCI_BDF(0, 27, 0) INTB PIRQA
+                                       PCI_BDF(0, 28, 0) INTA PIRQA
+                                       PCI_BDF(0, 28, 1) INTB PIRQB
+                                       PCI_BDF(0, 28, 2) INTC PIRQC
+                                       PCI_BDF(0, 28, 3) INTD PIRQD
+                                       PCI_BDF(0, 28, 4) INTA PIRQA
+                                       PCI_BDF(0, 28, 5) INTB PIRQB
+                                       PCI_BDF(0, 28, 6) INTC PIRQC
+                                       PCI_BDF(0, 28, 7) INTD PIRQD
+                                       PCI_BDF(0, 29, 0) INTA PIRQA
+                                       PCI_BDF(0, 31, 2) INTB PIRQB
+                                       PCI_BDF(0, 31, 3) INTC PIRQC
+                                       PCI_BDF(0, 31, 5) INTB PIRQB
+                                       PCI_BDF(0, 31, 6) INTC PIRQC
+                               >;
+                       };
+
                        spi0: spi {
                                #address-cells = <1>;
                                #size-cells = <0>;
index 98d9aa0f3ad0cf6c6db9f38f857ba10911afd632..eeee2521c6bbd3a454a82d3acc30d4b82a1d0ecb 100644 (file)
@@ -6,6 +6,8 @@ CONFIG_TARGET_COUGARCANYON2=y
 # CONFIG_HAVE_INTEL_ME is not set
 # CONFIG_ENABLE_MRC_CACHE is not set
 CONFIG_SMP=y
+CONFIG_GENERATE_PIRQ_TABLE=y
+CONFIG_GENERATE_MP_TABLE=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y