Re: Query: Num GPIO lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Pandita, Vikram <vikram.pandita@xxxxxx> [090422 18:17]:
> 
> Ping. Any inputs on number of gpio's wrongly defined for OMAP34xx?

Sounds like a good bug fix! I'll add it to omap-fixes queue.

Tony
 
> 
> >-----Original Message-----
> >From: linux-omap-owner@xxxxxxxxxxxxxxx [mailto:linux-omap-owner@xxxxxxxxxxxxxxx] On Behalf Of
> >Pandita, Vikram
> >Sent: Monday, April 06, 2009 6:40 PM
> >To: linux-omap@xxxxxxxxxxxxxxx
> >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@xxxxxxxxxxxxx>
> >Signed-off-by: Vikram Pandita <vikram.pandita@xxxxxx>
> >---
> >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@xxxxxxxxxxxxxxx
> >More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux