MIPS: BCM63xx: Fix BCM6338 and BCM6345 gpio count
authorFlorian Fainelli <florian@openwrt.org>
Mon, 1 Mar 2010 22:36:32 +0000 (23:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 Apr 2010 16:26:16 +0000 (17:26 +0100)
The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs
available.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1016/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h

index 76a0b7216af576ea868e3c3f245c7329a5b2a1b6..43d4da0b1e9fe5f7ce0795b41a259a36b861ad60 100644 (file)
@@ -10,6 +10,10 @@ static inline unsigned long bcm63xx_gpio_count(void)
        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;