diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-05-01 18:37:54 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-05-06 18:02:08 -0400 |
commit | 686b634a07451fc4fe3b712fe211bfa861a53241 (patch) | |
tree | 109557ee13bc43e3e574fd54fe2354a2da7d6dc9 /arch/arm/mach-davinci/dm646x.c | |
parent | c12f415a9144a76dc99df34f56ce3022207ad1d0 (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/dm646x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index a0b373957838..bdb1acebe203 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -832,6 +832,7 @@ static struct davinci_soc_info davinci_soc_info_dm646x = { | |||
832 | .intc_irq_prios = dm646x_default_priorities, | 832 | .intc_irq_prios = dm646x_default_priorities, |
833 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, | 833 | .intc_irq_num = DAVINCI_N_AINTC_IRQ, |
834 | .timer_info = &dm646x_timer_info, | 834 | .timer_info = &dm646x_timer_info, |
835 | .gpio_type = GPIO_TYPE_DAVINCI, | ||
835 | .gpio_base = IO_ADDRESS(DAVINCI_GPIO_BASE), | 836 | .gpio_base = IO_ADDRESS(DAVINCI_GPIO_BASE), |
836 | .gpio_num = 43, /* Only 33 usable */ | 837 | .gpio_num = 43, /* Only 33 usable */ |
837 | .gpio_irq = IRQ_DM646X_GPIOBNK0, | 838 | .gpio_irq = IRQ_DM646X_GPIOBNK0, |