| To: | ralf@linux-mips.org, linux-wireless@vger.kernel.org, zajec5@gmail.com, linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH v2 11/11] bcm47xx: fix irq assignment for new SoCs. |
| From: | Hauke Mehrtens <hauke@hauke-m.de> |
| Date: | Sat, 16 Jul 2011 18:55:42 +0200 |
| Cc: | jonas.gorski@gmail.com, mb@bu3sch.de, george@znau.edu.ua, arend@broadcom.com, b43-dev@lists.infradead.org, bernhardloos@googlemail.com, arnd@arndb.de, julian.calaby@gmail.com, sshtylyov@mvista.com, Hauke Mehrtens <hauke@hauke-m.de> |
| In-reply-to: | <1310835342-18877-1-git-send-email-hauke@hauke-m.de> |
| References: | <1310835342-18877-1-git-send-email-hauke@hauke-m.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
arch/mips/bcm47xx/irq.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/mips/bcm47xx/irq.c b/arch/mips/bcm47xx/irq.c
index 325757a..70bdcf0 100644
--- 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
+ if (bcm47xx_active_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();
}
--
1.7.4.1
|
| Previous by Date: | [PATCH v2 10/11] bcm47xx: add support for bcma bus, Hauke Mehrtens |
|---|---|
| Next by Date: | [GIT PULL] MIPS build fix related to power management for 3.0, Rafael J. Wysocki |
| Previous by Thread: | [PATCH v2 10/11] bcm47xx: add support for bcma bus, Hauke Mehrtens |
| Next by Thread: | Re: [PATCH v2 00/11] bcma: add support for embedded devices like bcm4716, Rafał Miłecki |
| Indexes: | [Date] [Thread] [Top] [All Lists] |