2011-08-05 04:04:54 +08:00
|
|
|
From 1c44f60e3fd9336d19f56a67c1efc1129fd728a6 Mon Sep 17 00:00:00 2001
|
2011-06-29 06:21:57 +08:00
|
|
|
From: Hauke Mehrtens <hauke@hauke-m.de>
|
|
|
|
Date: Mon, 6 Jun 2011 00:07:38 +0200
|
2011-08-05 04:04:54 +08:00
|
|
|
Subject: [PATCH 11/26] bcm47xx: fix irq assignment for new SoCs.
|
2011-06-29 06:21:57 +08:00
|
|
|
|
|
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
|
|
|
---
|
|
|
|
arch/mips/bcm47xx/irq.c | 12 ++++++++++++
|
|
|
|
1 files changed, 12 insertions(+), 0 deletions(-)
|
|
|
|
|
|
|
|
--- a/arch/mips/bcm47xx/irq.c
|
|
|
|
+++ b/arch/mips/bcm47xx/irq.c
|
|
|
|
@@ -26,6 +26,7 @@
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <linux/irq.h>
|
|
|
|
#include <asm/irq_cpu.h>
|
|
|
|
+#include <bcm47xx.h>
|
|
|
|
|
|
|
|
void plat_irq_dispatch(void)
|
|
|
|
{
|
|
|
|
@@ -51,5 +52,16 @@ void plat_irq_dispatch(void)
|
|
|
|
|
|
|
|
void __init arch_init_irq(void)
|
|
|
|
{
|
|
|
|
+#ifdef CONFIG_BCM47XX_BCMA
|
2011-08-05 04:04:54 +08:00
|
|
|
+ if (bcm47xx_bus_type == BCM47XX_BUS_TYPE_BCMA) {
|
2011-06-29 06:21:57 +08:00
|
|
|
+ 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();
|
|
|
|
}
|