Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 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>

authored by

Florian Fainelli and committed by
Ralf Baechle
d1b28758 b44c779a

+4
+4
arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
··· 10 10 switch (bcm63xx_get_cpu_id()) { 11 11 case BCM6358_CPU_ID: 12 12 return 40; 13 + case BCM6338_CPU_ID: 14 + return 8; 15 + case BCM6345_CPU_ID: 16 + return 16; 13 17 case BCM6348_CPU_ID: 14 18 default: 15 19 return 37;