aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm-2.6/patches/001-bcm947xx.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-16 15:00:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-16 15:00:10 +0000
commit900a30b6160202a14fc13dd89d32e586f147aa4c (patch)
tree1ff4bacd82c29331e608d666cfd1f44e4ae01431 /target/linux/brcm-2.6/patches/001-bcm947xx.patch
parent03dcf73c69b4dda988d92d157dbfa227b496397d (diff)
downloadmaster-187ad058-900a30b6160202a14fc13dd89d32e586f147aa4c.tar.gz
master-187ad058-900a30b6160202a14fc13dd89d32e586f147aa4c.tar.bz2
master-187ad058-900a30b6160202a14fc13dd89d32e586f147aa4c.zip
fix irq sharing issue on bcm4710
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5160 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm-2.6/patches/001-bcm947xx.patch')
-rw-r--r--target/linux/brcm-2.6/patches/001-bcm947xx.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/target/linux/brcm-2.6/patches/001-bcm947xx.patch b/target/linux/brcm-2.6/patches/001-bcm947xx.patch
index 864f7747de..079360ec1d 100644
--- a/target/linux/brcm-2.6/patches/001-bcm947xx.patch
+++ b/target/linux/brcm-2.6/patches/001-bcm947xx.patch
@@ -1829,22 +1829,22 @@ diff -urN linux.old/arch/mips/bcm947xx/broadcom/sbmips.c linux.dev/arch/mips/bcm
+ BCMINIT(sb_setirq)(sbh, 0, SB_CODEC, 0);
+ BCMINIT(sb_setirq)(sbh, 0, SB_EXTIF, 0);
+ BCMINIT(sb_setirq)(sbh, 2, SB_ENET, 1);
-+ BCMINIT(sb_setirq)(sbh, 3, SB_ILINE20, 0);
++ // BCMINIT(sb_setirq)(sbh, 3, SB_ILINE20, 0); /* seems to be unused */
+ BCMINIT(sb_setirq)(sbh, 4, SB_PCI, 0);
+ ASSERT(eir);
+ value = BCMINIT(early_nvram_get)("et0phyaddr");
+ if (value && !strcmp(value, "31")) {
+ /* Enable internal UART */
+ W_REG(&eir->corecontrol, CC_UE);
-+ /* Give USB its own interrupt */
-+ BCMINIT(sb_setirq)(sbh, 1, SB_USB, 0);
+ } else {
+ /* Disable internal UART */
+ W_REG(&eir->corecontrol, 0);
+ /* Give Ethernet its own interrupt */
+ BCMINIT(sb_setirq)(sbh, 1, SB_ENET, 0);
-+ BCMINIT(sb_setirq)(sbh, 0, SB_USB, 0);
+ }
++ /* USB gets its own interrupt */
++ BCMINIT(sb_setirq)(sbh, 3, SB_USB, 0);
++
+ break;
+ case BCM5350_DEVICE_ID:
+ /* Clear interrupt map */
@@ -2512,6 +2512,7 @@ diff -urN linux.old/arch/mips/bcm947xx/broadcom/sbmips.c linux.dev/arch/mips/bcm
+}
+
+
+
diff -urN linux.old/arch/mips/bcm947xx/broadcom/sbpci.c linux.dev/arch/mips/bcm947xx/broadcom/sbpci.c
--- linux.old/arch/mips/bcm947xx/broadcom/sbpci.c 1970-01-01 01:00:00.000000000 +0100
+++ linux.dev/arch/mips/bcm947xx/broadcom/sbpci.c 2006-10-15 23:29:14.000000000 +0200