Skip to content

Commit

Permalink
MIPS: BCM63xx: Fix BCM6338 and BCM6345 gpio count
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Apr 12, 2010
1 parent b44c779 commit d1b2875
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d1b2875

Please sign in to comment.