All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pandita, Vikram" <vikram.pandita@ti.com>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: Query: Num GPIO lines
Date: Thu, 23 Apr 2009 06:46:50 +0530	[thread overview]
Message-ID: <FCCFB4CDC6E5564B9182F639FC35608702F4C296B6@dbde02.ent.ti.com> (raw)
In-Reply-To: <FCCFB4CDC6E5564B9182F639FC35608702EA9675F9@dbde02.ent.ti.com>


Ping. Any inputs on number of gpio's wrongly defined for OMAP34xx?


>-----Original Message-----
>From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of
>Pandita, Vikram
>Sent: Monday, April 06, 2009 6:40 PM
>To: linux-omap@vger.kernel.org
>Subject: Query: Num GPIO lines
>
>
>Why for OMAP34xx is number of GPIO's 160?
>As per 3430 TRM, there are 6 banks [0 to 191]
>
>Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
>Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
>---
>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;
> }
>--
>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


  reply	other threads:[~2009-04-23  1:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-06 23:18 Embedded Linux Conference Hans Verkuil
2009-04-06 23:39 ` Query: Num GPIO lines Pandita, Vikram
2009-04-23  1:16   ` Pandita, Vikram [this message]
2009-05-13 17:31     ` Tony Lindgren
2009-05-13 17:32   ` [APPLIED] >Query: " Tony Lindgren
2009-04-06 23:45 ` Embedded Linux Conference Tony Lindgren
2009-04-07  1:45   ` Tony Lindgren
2009-04-07 15:53     ` Tony Lindgren
2009-04-07 15:53       ` Tony Lindgren
2009-04-07 17:05       ` Dongsoo, Nathaniel Kim
2009-04-07 17:05         ` Dongsoo, Nathaniel Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FCCFB4CDC6E5564B9182F639FC35608702F4C296B6@dbde02.ent.ti.com \
    --to=vikram.pandita@ti.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.