]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: Netlogic: Add IRQ mappings for more devices
authorJayachandran C <jayachandranc@netlogicmicro.com>
Tue, 24 Jul 2012 15:28:54 +0000 (17:28 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 24 Jul 2012 15:28:54 +0000 (17:28 +0200)
Add IRT to IRQ translation for the MMC and I2C IRQs.

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3761/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/netlogic/xlp-hal/xlp.h
arch/mips/netlogic/xlp/nlm_hal.c

index 3921a313ec4a95822e194ce0c747f26789df8e90..7e47209327a542b3c090560243690faebe8dda88 100644 (file)
@@ -47,6 +47,9 @@
 #define PIC_OHCI_1_IRQ                 26
 #define PIC_OHCI_2_IRQ                 27
 #define PIC_OHCI_3_IRQ                 28
+#define PIC_MMC_IRQ                    29
+#define PIC_I2C_0_IRQ                  30
+#define PIC_I2C_1_IRQ                  31
 
 #ifndef __ASSEMBLY__
 
index fad2cae293c6c6634d3019e2e803ff96dbc4ae3b..6c65ac7019125d5cbfedbb72727fcf4c9614dd2f 100644 (file)
@@ -89,6 +89,12 @@ int nlm_irq_to_irt(int irq)
               return PIC_IRT_OHCI_2_INDEX;
        case PIC_OHCI_3_IRQ:
               return PIC_IRT_OHCI_3_INDEX;
+       case PIC_MMC_IRQ:
+              return PIC_IRT_MMC_INDEX;
+       case PIC_I2C_0_IRQ:
+               return PIC_IRT_I2C_0_INDEX;
+       case PIC_I2C_1_IRQ:
+               return PIC_IRT_I2C_1_INDEX;
        default:
                return -1;
        }
@@ -121,6 +127,12 @@ int nlm_irt_to_irq(int irt)
                return PIC_OHCI_2_IRQ;
        case PIC_IRT_OHCI_3_INDEX:
                return PIC_OHCI_3_IRQ;
+       case PIC_IRT_MMC_INDEX:
+              return PIC_MMC_IRQ;
+       case PIC_IRT_I2C_0_INDEX:
+               return PIC_I2C_0_IRQ;
+       case PIC_IRT_I2C_1_INDEX:
+               return PIC_I2C_1_IRQ;
        default:
                return -1;
        }