* [PATCH 4/4] bcm63xx: fix BCM6338 and BCM6345 gpio count
@ 2010-03-01 22:36 Florian Fainelli
2010-03-17 16:17 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2010-03-01 22:36 UTC (permalink / raw)
To: ralf, linux-mips
The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs
available.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
index 76a0b72..43d4da0 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_gpio.h
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 4/4] bcm63xx: fix BCM6338 and BCM6345 gpio count
2010-03-01 22:36 [PATCH 4/4] bcm63xx: fix BCM6338 and BCM6345 gpio count Florian Fainelli
@ 2010-03-17 16:17 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2010-03-17 16:17 UTC (permalink / raw)
To: Florian Fainelli; +Cc: linux-mips
On Mon, Mar 01, 2010 at 11:36:32PM +0100, Florian Fainelli wrote:
> The number of GPIOs on BCM6338 is 8, while BCM6345 has only 16 GPIOs
> available.
Thanks, applied.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-17 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 22:36 [PATCH 4/4] bcm63xx: fix BCM6338 and BCM6345 gpio count Florian Fainelli
2010-03-17 16:17 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).