kernel-fxtec-pro1x/arch/arm/mach-davinci/include/mach
David Brownell 474dad54ba davinci: gpio bugfixes
Update the DaVinci GPIO code to work better on non-dm6446 parts,
notably the dm355:

 - Only handle the number of GPIOs the chip actually has.  So
   for example on dm6467, GPIO-42 is the last GPIO, and trying
   to use GPIO-43 now fails cleanly; or GPIO-72 on dm6446.

 - Enable GPIO interrupts on each 16-bit GPIO-irq bank ...
   previously, only the first five were enabled, so GPIO-80
   and above (on dm355) wouldn't trigger IRQs.

 - Use the right IRQ for each GPIO bank.  The wrong values were
   used for dm355 chips, so GPIO IRQs got routed incorrectly.

 - Handle up to four pairs of 16-bit GPIO banks ... previously
   only three were handled, so accessing GPIO-96 and up (e.g. on
   dm355) would oops.

 - Update several comments that were dm6446-specific.

Verified by receiving GPIO-1 (dm9000) and GPIO-5 (msp430) IRQs
on the DM355 EVM.

One thing this doesn't do is handle the way some of the GPIO
numbers on dm6467 are reserved but aren't valid as GPIOs.  Some
bitmap logic could fix that if needed.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
2009-04-27 09:49:43 -07:00
..
clkdev.h davinci: major rework of clock, PLL, PSC infrastructure 2009-04-23 09:31:00 -07:00
clock.h davinci: major rework of clock, PLL, PSC infrastructure 2009-04-23 09:31:00 -07:00
common.h ARM: DaVinci: usb setup 2008-09-17 00:31:42 -07:00
cputype.h davinci: add runtime CPU detection support 2009-04-23 09:27:59 -07:00
debug-macro.S
edma.h davinci: add EDMA driver 2009-04-27 09:49:42 -07:00
entry-macro.S
gpio.h davinci: gpio bugfixes 2009-04-27 09:49:43 -07:00
hardware.h davinci: add arch_ioremap() which uses existing static mappings 2009-04-23 09:31:09 -07:00
i2c.h ARM: DaVinci: i2c setup 2008-09-17 00:31:42 -07:00
io.h davinci: add arch_ioremap() which uses existing static mappings 2009-04-23 09:31:09 -07:00
irqs.h
memory.h [ARM] Ensure that both MAX_DMA_ADDRESS and ISA_DMA_THRESHOLD are defined 2008-11-30 13:26:47 +00:00
mux.h
nand.h [MTD] [NAND] davinci_nand driver 2009-03-20 12:32:19 +00:00
psc.h davinci: major rework of clock, PLL, PSC infrastructure 2009-04-23 09:31:00 -07:00
serial.h
system.h [ARM] pass reboot command line to arch_reset() 2009-03-19 16:20:24 +00:00
timex.h
uncompress.h
vmalloc.h [ARM] davinci: asm/memory.h is not required for mach/vmalloc.h 2008-11-30 14:42:43 +00:00