linux-mips
[Top] [All Lists]

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

To: ralf@linux-mips.org, linux-mips@linux-mips.org
Subject: [PATCH 4/4] bcm63xx: fix BCM6338 and BCM6345 gpio count
From: Florian Fainelli <florian@openwrt.org>
Date: Mon, 1 Mar 2010 23:36:32 +0100
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:reply-to:content-type :content-transfer-encoding:message-id; bh=yFpFrflWQiWE+hFwO8KN6XfCxd8+qeREgASUxSqoJsE=; b=RXm/d9LAFbsAQG+ngS9MIx22gV9bsbpTV+TRfFFJWHU8TKaZ7K5EaGmMveXfY1I5R9 HruDOWmnyQLnCk8MjePLAh8u/FeaZlmaSB/pHpiStS6bQyPm8OFIxND7AM0/HEHS0s0+ /MIJd2t8iIci/GoDfWg7S+urkUE32B/rQueVA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to:reply-to :content-type:content-transfer-encoding:message-id; b=cAvmu3Knz4tQIUvnKKD7CXtRr/unPK/Amzllk2S0TtREUb3lmJImVgTeFA+I9WdMFg iseTiT57BM9cOlNLWyx8kGeQpg+FpfHAJHJYrSRm5ptbsmt32d9QeLJuWoqdWRU7wxjq eOgCAUZ4EuI02ffhvlcALj7RT0Pe6GCi1KMW4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: Florian Fainelli <florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
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;



<Prev in Thread] Current Thread [Next in Thread>