Skip to contentSkip to conversation

MIPS: BCM63XX: fix BCM6358 GPIO count

PATCH Applied Daniel González Cabanelas 2 participants 2 messages May 24, 2020 – May 25, 2020 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: BCM63XX: fix BCM6358 GPIO count

The BCM6358 SoC has only 38 available GPIOs. Fix it.

---
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h +3 -3
index 8fe88c2251..9212429d5e 100644
@@ -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;
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 6 lines · Daniel González Cabanelas

The BCM6358 SoC has only 38 available GPIOs. Fix it.

---
 arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

applied to mips-next.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]