aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRoland Stigge <stigge@antcom.de>2012-02-27 11:28:02 -0500
committerRoland Stigge <stigge@antcom.de>2012-02-27 11:28:02 -0500
commit35dd0a75d4a382e7f769dd0277732e7aa5235718 (patch)
tree1551ad6bdb769fc20871e9c8497fcc8fe068c160 /arch
parentf6737055c1c432a9628a9a731f9881ad8e0a9eee (diff)
ARM: LPC32xx: Fix interrupt controller init
This patch fixes the initialization of the interrupt controller of the LPC32xx by correctly setting up SIC1 and SIC2 instead of (wrongly) using the same value as for the Main Interrupt Controller (MIC). Signed-off-by: Roland Stigge <stigge@antcom.de> Cc: stable@vger.kernel.org
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-lpc32xx/irq.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/arm/mach-lpc32xx/irq.c b/arch/arm/mach-lpc32xx/irq.c
index ce4b5570bd62..d3bf9c11fd66 100644
--- a/arch/arm/mach-lpc32xx/irq.c
+++ b/arch/arm/mach-lpc32xx/irq.c
@@ -384,13 +384,15 @@ void __init lpc32xx_init_irq(void)
384 384
385 /* Setup SIC1 */ 385 /* Setup SIC1 */
386 __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC1_BASE)); 386 __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC1_BASE));
387 __raw_writel(MIC_APR_DEFAULT, LPC32XX_INTC_POLAR(LPC32XX_SIC1_BASE)); 387 __raw_writel(SIC1_APR_DEFAULT, LPC32XX_INTC_POLAR(LPC32XX_SIC1_BASE));
388 __raw_writel(MIC_ATR_DEFAULT, LPC32XX_INTC_ACT_TYPE(LPC32XX_SIC1_BASE)); 388 __raw_writel(SIC1_ATR_DEFAULT,
389 LPC32XX_INTC_ACT_TYPE(LPC32XX_SIC1_BASE));
389 390
390 /* Setup SIC2 */ 391 /* Setup SIC2 */
391 __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC2_BASE)); 392 __raw_writel(0, LPC32XX_INTC_MASK(LPC32XX_SIC2_BASE));
392 __raw_writel(MIC_APR_DEFAULT, LPC32XX_INTC_POLAR(LPC32XX_SIC2_BASE)); 393 __raw_writel(SIC2_APR_DEFAULT, LPC32XX_INTC_POLAR(LPC32XX_SIC2_BASE));
393 __raw_writel(MIC_ATR_DEFAULT, LPC32XX_INTC_ACT_TYPE(LPC32XX_SIC2_BASE)); 394 __raw_writel(SIC2_ATR_DEFAULT,
395 LPC32XX_INTC_ACT_TYPE(LPC32XX_SIC2_BASE));
394 396
395 /* Configure supported IRQ's */ 397 /* Configure supported IRQ's */
396 for (i = 0; i < NR_IRQS; i++) { 398 for (i = 0; i < NR_IRQS; i++) {