ea471dbf653aa2d4cee36cfaec14d0114ba77a0c
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-2.6.32 / 160-fix_gpio_count.patch
1 Index: linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
2 ===================================================================
3 --- linux-2.6.32.9.orig/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h 2010-02-28 19:02:10.000000000 +0100
4 +++ linux-2.6.32.9/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h 2010-02-28 19:02:40.000000000 +0100
5 @@ -10,6 +10,10 @@
6 switch (bcm63xx_get_cpu_id()) {
7 case BCM6358_CPU_ID:
8 return 40;
9 + case BCM6338_CPU_ID:
10 + return 8;
11 + case BCM6345_CPU_ID:
12 + return 16;
13 case BCM6348_CPU_ID:
14 default:
15 return 37;