From: Hauke Mehrtens Date: Fri, 22 Jul 2011 23:20:15 +0000 (+0200) Subject: bcm47xx: fix irq assignment for new SoCs. X-Git-Tag: MMI-PSA29.97-13-9~18194^2~254^2~388 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3e72cd2974a4b178d4edf6737ae51d1ea83b5d8;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git bcm47xx: fix irq assignment for new SoCs. Signed-off-by: Hauke Mehrtens Acked-by: Ralf Baechle Signed-off-by: John W. Linville --- diff --git a/arch/mips/bcm47xx/irq.c b/arch/mips/bcm47xx/irq.c index 325757acd020..8cf3833b2d29 100644 --- a/arch/mips/bcm47xx/irq.c +++ b/arch/mips/bcm47xx/irq.c @@ -26,6 +26,7 @@ #include #include #include +#include void plat_irq_dispatch(void) { @@ -51,5 +52,16 @@ void plat_irq_dispatch(void) void __init arch_init_irq(void) { +#ifdef CONFIG_BCM47XX_BCMA + if (bcm47xx_bus_type == BCM47XX_BUS_TYPE_BCMA) { + bcma_write32(bcm47xx_bus.bcma.bus.drv_mips.core, + BCMA_MIPS_MIPS74K_INTMASK(5), 1 << 31); + /* + * the kernel reads the timer irq from some register and thinks + * it's #5, but we offset it by 2 and route to #7 + */ + cp0_compare_irq = 7; + } +#endif mips_cpu_irq_init(); }