imx6: fix pcie interrupt mapping
The interrupt mapping for legacy interrupts was backwards causing interrupts to be mapped improperly behind a PCIe to PCI bridge (ie GW16082 mezzanine). Signed-off-by: Tim Harvey <tharvey@gateworks.com> SVN-Revision: 38519
This commit is contained in:
parent
2f4ae98018
commit
9e17f251d5
1 changed files with 4 additions and 4 deletions
|
@ -17,10 +17,10 @@ Signed-off-by: Tim Harvey <tharvey@gateworks.com>
|
||||||
|
|
||||||
- return pp->irq;
|
- return pp->irq;
|
||||||
+ switch (pin) {
|
+ switch (pin) {
|
||||||
+ case 1: return pp->irq;
|
+ case 1: return pp->irq - 3;
|
||||||
+ case 2: return pp->irq - 1;
|
+ case 2: return pp->irq - 2;
|
||||||
+ case 3: return pp->irq - 2;
|
+ case 3: return pp->irq - 1;
|
||||||
+ case 4: return pp->irq - 3;
|
+ case 4: return pp->irq;
|
||||||
+ default: return -1;
|
+ default: return -1;
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue