aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/gpio.c
diff options
context:
space:
mode:
authorCyril Chemparathy <cyril@ti.com>2010-05-01 18:37:54 -0400
committerKevin Hilman <khilman@deeprootsystems.com>2010-05-06 18:02:08 -0400
commit686b634a07451fc4fe3b712fe211bfa861a53241 (patch)
tree109557ee13bc43e3e574fd54fe2354a2da7d6dc9 /arch/arm/mach-davinci/gpio.c
parentc12f415a9144a76dc99df34f56ce3022207ad1d0 (diff)
Davinci: gpio - controller type support
This patch allows for gpio controllers that deviate from those found on traditional davinci socs. davinci_soc_info has an added field to indicate the soc-specific gpio controller type. The gpio initialization code then bails out if necessary. More elements (tnetv107x) to be added later into enum davinci_gpio_type. Signed-off-by: Cyril Chemparathy <cyril@ti.com> Tested-by: Sandeep Paulraj <s-paulraj@ti.com> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/gpio.c')
-rw-r--r--arch/arm/mach-davinci/gpio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c
index d241b4f2abe2..e422cd300d4c 100644
--- a/arch/arm/mach-davinci/gpio.c
+++ b/arch/arm/mach-davinci/gpio.c
@@ -145,6 +145,9 @@ static int __init davinci_gpio_setup(void)
145 struct davinci_soc_info *soc_info = &davinci_soc_info; 145 struct davinci_soc_info *soc_info = &davinci_soc_info;
146 struct davinci_gpio_regs *regs; 146 struct davinci_gpio_regs *regs;
147 147
148 if (soc_info->gpio_type != GPIO_TYPE_DAVINCI)
149 return 0;
150
148 /* 151 /*
149 * The gpio banks conceptually expose a segmented bitmap, 152 * The gpio banks conceptually expose a segmented bitmap,
150 * and "ngpio" is one more than the largest zero-based 153 * and "ngpio" is one more than the largest zero-based