omap2: Fix GPIO numbers and smc91x for 2430sdp
Fix GPIO numbers and smc91x for 2430sdp. The earlier code had cut and paste errors from 3430sdp code. Also, 2430 has five GPIO banks for a total of 160 GPIO lines. Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
@@ -390,7 +390,9 @@ static inline int gpio_valid(int gpio)
|
||||
return 0;
|
||||
if (cpu_is_omap7xx() && gpio < 192)
|
||||
return 0;
|
||||
if (cpu_is_omap24xx() && gpio < 128)
|
||||
if (cpu_is_omap2420() && gpio < 128)
|
||||
return 0;
|
||||
if (cpu_is_omap2430() && gpio < 160)
|
||||
return 0;
|
||||
if ((cpu_is_omap34xx() || cpu_is_omap44xx()) && gpio < 192)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user