OSDN Git Service

MIPS: BCM63XX: fix BCM6358 GPIO count
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Sun, 24 May 2020 18:59:53 +0000 (20:59 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 25 May 2020 12:55:19 +0000 (14:55 +0200)
The BCM6358 SoC has only 38 available GPIOs. Fix it.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h

index 8fe88c2..9212429 100644 (file)
@@ -13,16 +13,16 @@ static inline unsigned long bcm63xx_gpio_count(void)
        case BCM6328_CPU_ID:
                return 32;
        case BCM3368_CPU_ID:
-       case BCM6358_CPU_ID:
                return 40;
        case BCM6338_CPU_ID:
                return 8;
        case BCM6345_CPU_ID:
                return 16;
-       case BCM6362_CPU_ID:
-               return 48;
+       case BCM6358_CPU_ID:
        case BCM6368_CPU_ID:
                return 38;
+       case BCM6362_CPU_ID:
+               return 48;
        case BCM6348_CPU_ID:
        default:
                return 37;