Skip to contentSkip to conversation

bcm63xx: fix BCM6338 and BCM6345 gpio count

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 1, 2010 – Mar 17, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 bcm63xx: fix BCM6338 and BCM6345 gpio count

The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs available.

---

arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h +4 -0
index 76a0b72..43d4da0 100644
@@ -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;
Applied
#1 lore raw
Quoted 2 lines · Florian Fainelli

The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs available.

Thanks, applied.

Ralf