]> git.baikalelectronics.ru Git - kernel.git/commit
davinci: Make GPIO code more generic
authorMark A. Greer <mgreer@mvista.com>
Wed, 15 Apr 2009 19:40:35 +0000 (12:40 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 28 May 2009 22:16:30 +0000 (15:16 -0700)
commitae26b2374170f252319c1680dcaae93746afe9ad
tree14c62610ee3ec0aa59fa5df49d4bf5ac88c8eb4c
parent6f5edf3d71add2bfa985bc6827f8e49321a174e2
davinci: Make GPIO code more generic

The current gpio code needs to know the number of
gpio irqs there are and what the bank irq number is.
To determine those values, it checks the SoC type.

It also assumes that the base address and the number
of irqs the interrupt controller uses is fixed.

To clean up the SoC checks and make it support
different base addresses and interrupt controllers,
have the SoC-specific code set those values in
the soc_info structure and have the gpio code
reference them there.

Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/dm355.c
arch/arm/mach-davinci/dm644x.c
arch/arm/mach-davinci/dm646x.c
arch/arm/mach-davinci/gpio.c
arch/arm/mach-davinci/include/mach/common.h
arch/arm/mach-davinci/include/mach/gpio.h