Commit 1eef33be authored by Alessio Igor Bogani's avatar Alessio Igor Bogani Committed by Scott Wood

powerpc/86xx: Fix PCI interrupt map definition

Fix PCI interrupt map definition from 2 to 4 cells. Move
interrupt-map and interrupt-map-mask and clone interrupts
into the pcie child nodes.
Signed-off-by: default avatarAlessio Igor Bogani <alessio.bogani@elettra.eu>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent a66639d4
...@@ -102,14 +102,6 @@ &pci0 { ...@@ -102,14 +102,6 @@ &pci0 {
bus-range = <0x0 0xff>; bus-range = <0x0 0xff>;
clock-frequency = <100000000>; clock-frequency = <100000000>;
interrupts = <24 2 0 0>; interrupts = <24 2 0 0>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <
0x0000 0x0 0x0 0x1 &mpic 0x0 0x1
0x0000 0x0 0x0 0x2 &mpic 0x1 0x1
0x0000 0x0 0x0 0x3 &mpic 0x2 0x1
0x0000 0x0 0x0 0x4 &mpic 0x3 0x1
>;
pcie@0 { pcie@0 {
reg = <0 0 0 0 0>; reg = <0 0 0 0 0>;
...@@ -117,6 +109,14 @@ pcie@0 { ...@@ -117,6 +109,14 @@ pcie@0 {
#size-cells = <2>; #size-cells = <2>;
#address-cells = <3>; #address-cells = <3>;
device_type = "pci"; device_type = "pci";
interrupts = <24 2 0 0>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <
0x0000 0x0 0x0 0x1 &mpic 0x0 0x1 0x0 0x0
0x0000 0x0 0x0 0x2 &mpic 0x1 0x1 0x0 0x0
0x0000 0x0 0x0 0x3 &mpic 0x2 0x1 0x0 0x0
0x0000 0x0 0x0 0x4 &mpic 0x3 0x1 0x0 0x0
>;
}; };
}; };
...@@ -128,14 +128,6 @@ &pci1 { ...@@ -128,14 +128,6 @@ &pci1 {
bus-range = <0x0 0xff>; bus-range = <0x0 0xff>;
clock-frequency = <100000000>; clock-frequency = <100000000>;
interrupts = <25 2 0 0>; interrupts = <25 2 0 0>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <
0x0000 0x0 0x0 0x1 &mpic 0x4 0x1
0x0000 0x0 0x0 0x2 &mpic 0x5 0x1
0x0000 0x0 0x0 0x3 &mpic 0x6 0x1
0x0000 0x0 0x0 0x4 &mpic 0x7 0x1
>;
pcie@0 { pcie@0 {
reg = <0 0 0 0 0>; reg = <0 0 0 0 0>;
...@@ -143,5 +135,13 @@ pcie@0 { ...@@ -143,5 +135,13 @@ pcie@0 {
#size-cells = <2>; #size-cells = <2>;
#address-cells = <3>; #address-cells = <3>;
device_type = "pci"; device_type = "pci";
interrupts = <25 2 0 0>;
interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
interrupt-map = <
0x0000 0x0 0x0 0x1 &mpic 0x4 0x1 0x0 0x0
0x0000 0x0 0x0 0x2 &mpic 0x5 0x1 0x0 0x0
0x0000 0x0 0x0 0x3 &mpic 0x6 0x1 0x0 0x0
0x0000 0x0 0x0 0x4 &mpic 0x7 0x1 0x0 0x0
>;
}; };
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment