diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2011-06-28 22:21:57 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2011-06-28 22:21:57 +0000 |
commit | 4c18da3df65146d5148dc241c7b6cd1ccc2bcee8 (patch) | |
tree | 03eb26311c9d4c410cb9180ccc08a4e00a22433b /target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch | |
parent | 3f0eed15a2c8140943f66e31806054c7550377ae (diff) | |
download | mtk-20170518-4c18da3df65146d5148dc241c7b6cd1ccc2bcee8.zip mtk-20170518-4c18da3df65146d5148dc241c7b6cd1ccc2bcee8.tar.gz mtk-20170518-4c18da3df65146d5148dc241c7b6cd1ccc2bcee8.tar.bz2 |
brcm47xx: add initial support for devices with bcma bus.
Ethernet and wifi are not working and this is highly experimental.
SVN-Revision: 27301
Diffstat (limited to 'target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch b/target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch new file mode 100644 index 0000000..a40e726 --- /dev/null +++ b/target/linux/brcm47xx/patches-3.0/0013-bcm47xx-fix-irq-assignment-for-new-SoCs.patch @@ -0,0 +1,37 @@ +From 360eb82fd303ac24590a1b99ad1866162f6b0171 Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens <hauke@hauke-m.de> +Date: Mon, 6 Jun 2011 00:07:38 +0200 +Subject: [PATCH 13/14] bcm47xx: fix irq assignment for new SoCs. + +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 ++ 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(); + } |