aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorSubhendu Sekhar Behera <sbehera@broadcom.com>2015-01-07 06:28:37 -0500
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 11:21:53 -0400
commit065d7029a83dab2c4d3947c0c8462e5c4ae5a5a6 (patch)
tree708bf12e81901f93f0ab486ce6568934ead6cba5 /arch
parentc982232a3c3627d5735fbc1be0ed9a77bf8e3de1 (diff)
MIPS: Netlogic: i2c IRQ mappings for XLP9XX
The new I2C block in XLP9XX has 4 interrupts, add the mapping for these in nlm_hal.c Signed-off-by: Subhendu Sekhar Behera <sbehera@broadcom.com> Signed-off-by: Jayachandran C <jchandra@broadcom.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/8897/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/netlogic/xlp/nlm_hal.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/mips/netlogic/xlp/nlm_hal.c b/arch/mips/netlogic/xlp/nlm_hal.c
index 8d743d08fd73..a8f4144a0297 100644
--- a/arch/mips/netlogic/xlp/nlm_hal.c
+++ b/arch/mips/netlogic/xlp/nlm_hal.c
@@ -71,6 +71,14 @@ static int xlp9xx_irq_to_irt(int irq)
71 switch (irq) { 71 switch (irq) {
72 case PIC_GPIO_IRQ: 72 case PIC_GPIO_IRQ:
73 return 12; 73 return 12;
74 case PIC_I2C_0_IRQ:
75 return 125;
76 case PIC_I2C_1_IRQ:
77 return 126;
78 case PIC_I2C_2_IRQ:
79 return 127;
80 case PIC_I2C_3_IRQ:
81 return 128;
74 case PIC_9XX_XHCI_0_IRQ: 82 case PIC_9XX_XHCI_0_IRQ:
75 return 114; 83 return 114;
76 case PIC_9XX_XHCI_1_IRQ: 84 case PIC_9XX_XHCI_1_IRQ: