]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/platforms/pasemi/pci.c
[POWERPC] pasemi: Configure DMA controller interrupts
[karo-tx-linux.git] / arch / powerpc / platforms / pasemi / pci.c
index faa618e0404767217430eaa86d5a03f075efc8b8..7ecb2ba24db9cd26c0b0c80fe13c61a57caa5641 100644 (file)
@@ -163,6 +163,19 @@ static void __init pas_fixup_phb_resources(void)
 }
 
 
+void __devinit pas_pci_irq_fixup(struct pci_dev *dev)
+{
+       /* DMA is special, 84 interrupts (128 -> 211), all but 128
+        * need to be mapped by hand here.
+        */
+       if (dev->vendor == 0x1959 && dev->device == 0xa007) {
+               int i;
+               for (i = 129; i < 212; i++)
+                       irq_create_mapping(NULL, i);
+       }
+}
+
+
 void __init pas_pci_init(void)
 {
        struct device_node *np, *root;