linux/include/asm-arm/arch-ep93xx
Herbert Valerio Riedel 7ca7225339 [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups
This patch renumbers the (virtual) GPIO line numbering to have all
irq-capable gpio lines <= EP93XX_GPIO_LINE_MAX_IRQ by swapping the
port f range with the port c range; This simplifies code such as

 #define IRQ_EP93XX_GPIO(x)  (64 + (((x) + (((x) >> 2) & 8)) & 0x1f))

or

 if (line >= 0 && line < 16) {
    /* Port A/B */
 } else if (line >= 40 && line < 48) {
    /* Port F */
 }

considerably; in addition to the renumbering this patch also
introduces macro constants EP93XX_GPIO_LINE_MAX_IRQ and
EP93XX_GPIO_LINE_MAX, and replaces most magic numbers by those and
invocations of gpio_to_irq()/irq_to_gpio().

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2008-01-26 14:37:31 +00:00
..
debug-macro.S [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
dma.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
entry-macro.S [ARM] 4185/2: entry: introduce get_irqnr_preamble and arch_ret_to_user 2007-02-17 15:04:29 +00:00
ep93xx-regs.h [ARM] 4122/1: ep93xx: add support for GPIO port F interrupts 2007-02-08 14:48:19 +00:00
gesbc9312.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
gpio.h [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups 2008-01-26 14:37:31 +00:00
hardware.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
io.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
irqs.h [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups 2008-01-26 14:37:31 +00:00
memory.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
platform.h [ARM] 4120/1: ep93xx: make clock init an arch_initcall() 2007-02-08 14:48:11 +00:00
system.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
timex.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
ts72xx.h [ARM] 3451/1: ep93xx: use the m48t86 rtc driver on the ts72xx platform 2006-04-02 16:17:40 +01:00
uncompress.h [ARM] Fix decompressor serial IO to give CRLF not LFCR 2006-03-28 10:24:33 +01:00
vmalloc.h [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00