MIPS: Octeon: Add twsi interrupt initialization for OCTEON 3XXX, 5XXX, 63XX
authorEunbong Song <eunb.song@samsung.com>
Tue, 22 Apr 2014 06:16:15 +0000 (06:16 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 4 Jun 2014 20:50:42 +0000 (22:50 +0200)
In octeon_3xxx.dts file, there is a definiton for twsi/twsi2 interrupts.
But there is no code for initialization of this interrupts. This patch adds
code for initialization of twsi interrupts.

Signed-off-by: Eunbong Song <eunb.song@samsung.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6816/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/cavium-octeon/octeon-irq.c
arch/mips/include/asm/mach-cavium-octeon/irq.h

index 3aa5b46b2d40d0c7549142072debd16e1667ad81..1b82ac6921e031644687979d69b4287064751891 100644 (file)
@@ -1260,11 +1260,13 @@ static void __init octeon_irq_init_ciu(void)
        for (i = 0; i < 4; i++)
                octeon_irq_force_ciu_mapping(ciu_domain, i + OCTEON_IRQ_PCI_MSI0, 0, i + 40);
 
+       octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_TWSI, 0, 45);
        octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_RML, 0, 46);
        for (i = 0; i < 4; i++)
                octeon_irq_force_ciu_mapping(ciu_domain, i + OCTEON_IRQ_TIMER0, 0, i + 52);
 
        octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_USB0, 0, 56);
+       octeon_irq_force_ciu_mapping(ciu_domain, OCTEON_IRQ_TWSI2, 0, 59);
 
        /* CIU_1 */
        for (i = 0; i < 16; i++)
index 60fc4c347c44a222adafa54f05253506ec454b74..cceae32a0732bf571d15cbb26df84cb268760aa2 100644 (file)
@@ -35,6 +35,8 @@ enum octeon_irq {
        OCTEON_IRQ_PCI_MSI2,
        OCTEON_IRQ_PCI_MSI3,
 
+       OCTEON_IRQ_TWSI,
+       OCTEON_IRQ_TWSI2,
        OCTEON_IRQ_RML,
        OCTEON_IRQ_TIMER0,
        OCTEON_IRQ_TIMER1,
This page took 0.02566 seconds and 5 git commands to generate.