From patchwork Thu May 14 17:51:16 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 23805 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4EHpU2f018736 for ; Thu, 14 May 2009 17:51:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759645AbZENRv0 (ORCPT ); Thu, 14 May 2009 13:51:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756542AbZENRv0 (ORCPT ); Thu, 14 May 2009 13:51:26 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:53549 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754930AbZENRvZ (ORCPT ); Thu, 14 May 2009 13:51:25 -0400 Received: from c-67-160-239-110.hsd1.ca.comcast.net ([67.160.239.110] helo=[127.0.0.1]) by mho-02-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1M4f5Z-000DjP-82; Thu, 14 May 2009 17:51:25 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.160.239.110 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19Xc2Nz2BgkOqwJhDGLsJ8V Subject: [PATCH 7/8] ARM: OMAP3: Fix number of GPIO lines for 34xx To: linux-arm-kernel@lists.arm.linux.org.uk From: Tony Lindgren Cc: Vikram Pandita , linux-omap@vger.kernel.org, Tom Rix Date: Thu, 14 May 2009 10:51:16 -0700 Message-ID: <20090514175116.12080.12871.stgit@localhost> In-Reply-To: <20090514174100.12080.9736.stgit@localhost> References: <20090514174100.12080.9736.stgit@localhost> User-Agent: StGit/0.14.3.347.g594a MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Tony Lindgren As per 3430 TRM, there are 6 banks [0 to 191] Signed-off-by: Tom Rix Signed-off-by: Vikram Pandita Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/gpio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 17d7afe..ee0b21f 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap/gpio.c @@ -307,7 +307,7 @@ static inline int gpio_valid(int gpio) return 0; if (cpu_is_omap24xx() && gpio < 128) return 0; - if (cpu_is_omap34xx() && gpio < 160) + if (cpu_is_omap34xx() && gpio < 192) return 0; return -1; }