[backfire] backport r28376
[openwrt-10.03/.git] / target / linux / brcm63xx / patches-2.6.32 / 160-fix_gpio_count.patch
1 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
2 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
3 @@ -10,6 +10,10 @@ static inline unsigned long bcm63xx_gpio
4         switch (bcm63xx_get_cpu_id()) {
5         case BCM6358_CPU_ID:
6                 return 40;
7 +       case BCM6338_CPU_ID:
8 +               return 8;
9 +       case BCM6345_CPU_ID:
10 +               return 16;
11         case BCM6348_CPU_ID:
12         default:
13                 return 37;