summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-28 20:50:51 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-02-28 20:50:51 +0000
commita1bd9bdd429c9139a9e4bfd76adb2e491391dc7e (patch)
treebdba4afdca90282c214abee5f2aff4e9f37ce6ca /target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch
parent5a42dfc864792b29c31e866707cda3413129a5eb (diff)
[brcm63xx] add support for 2.6.32, dropped the SPI patch for now
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19919 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch')
-rw-r--r--target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch b/target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch
new file mode 100644
index 000000000..ea471dbf6
--- /dev/null
+++ b/target/linux/brcm63xx/patches-2.6.32/160-fix_gpio_count.patch
@@ -0,0 +1,15 @@
+Index: linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
+===================================================================
+--- linux-2.6.32.9.orig/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h 2010-02-28 19:02:10.000000000 +0100
++++ linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h 2010-02-28 19:02:40.000000000 +0100
+@@ -10,6 +10,10 @@
+ switch (bcm63xx_get_cpu_id()) {
+ case BCM6358_CPU_ID:
+ return 40;
++ case BCM6338_CPU_ID:
++ return 8;
++ case BCM6345_CPU_ID:
++ return 16;
+ case BCM6348_CPU_ID:
+ default:
+ return 37;