Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1b28758 authored by Florian Fainelli's avatar Florian Fainelli Committed by Ralf Baechle
Browse files

MIPS: BCM63xx: Fix BCM6338 and BCM6345 gpio count



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

Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1016/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b44c779a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;