aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/include/mach/gpio.h
diff options
context:
space:
mode:
authorSudhakar Rajashekhara <sudhakar.raj@ti.com>2009-08-11 16:14:21 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2009-08-26 11:55:52 +0300
commit5a8d5441f4aac3ef0478d5de723422304c611926 (patch)
tree7429c1de54434c0d92bc5be5ad142e6acbd8a3c1 /arch/arm/mach-davinci/include/mach/gpio.h
parent53ca5c916971f72262ef37287e17f0a7d980362c (diff)
downloadkernel_samsung_smdk4412-5a8d5441f4aac3ef0478d5de723422304c611926.zip
kernel_samsung_smdk4412-5a8d5441f4aac3ef0478d5de723422304c611926.tar.gz
kernel_samsung_smdk4412-5a8d5441f4aac3ef0478d5de723422304c611926.tar.bz2
davinci: Correct the number of GPIO pins for da850/omap-l138
DA850/OMAP-L138 has 144 pins configurable as GPIO, but currently this has been configured as 128. This patch corrects it. Also, this patch adds the base address for GPIO pins greater than 128. Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/gpio.h')
-rw-r--r--arch/arm/mach-davinci/include/mach/gpio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/gpio.h b/arch/arm/mach-davinci/include/mach/gpio.h
index ebcc29b..4f032b3 100644
--- a/arch/arm/mach-davinci/include/mach/gpio.h
+++ b/arch/arm/mach-davinci/include/mach/gpio.h
@@ -78,6 +78,8 @@ __gpio_to_controller(unsigned gpio)
ptr = base + 0x60;
else if (gpio < 32 * 4)
ptr = base + 0x88;
+ else if (gpio < 32 * 5)
+ ptr = base + 0xb0;
else
ptr = NULL;
return ptr;