Re: [PATCH 7/8] ARM: OMAP3: Fix number of GPIO lines for 34xx

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

 



* Gadiyar, Anand <gadiyar@xxxxxx> [090514 19:29]:
> > 
> > From: Tony Lindgren <Pandita>
> 
> Typo?

Thanks, fixed. Updated patch below.

Tony
commit 22c76ab3882a15542567c34bf2ed548401ff8cbe
Author: Vikram Pandita <vikram.pandita@xxxxxx>
Date:   Wed May 13 10:33:05 2009 -0700

    ARM: OMAP3: Fix number of GPIO lines for 34xx
    
    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>
    Signed-off-by: Tony Lindgren <tony@xxxxxxxxxxx>

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;
 }

[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