linux/arch/arm/mach-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
..
adssphere.c [ARM] 3964/1: ep93xx: add ads sphere support 2006-12-01 16:54:31 +00:00
clock.c [ARM] Convert AMBA PL010 driver to use the clk infrastructure 2007-04-22 12:30:41 +01:00
core.c [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups 2008-01-26 14:37:31 +00:00
edb9302.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
edb9302a.c [ARM] 3993/1: ep93xx: add cirrus logic edb9302a support 2006-12-07 16:01:56 +00:00
edb9307.c [ARM] 4572/1: ep93xx: add cirrus logic edb9307 support 2007-10-12 23:43:44 +01:00
edb9312.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
edb9315.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
edb9315a.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
gesbc9312.c [ARM] 3879/1: ep93xx: instantiate platform devices for ep93xx ethernet 2006-09-30 11:30:45 +01:00
Kconfig [ARM] 4572/1: ep93xx: add cirrus logic edb9307 support 2007-10-12 23:43:44 +01:00
Makefile [ARM] 4572/1: ep93xx: add cirrus logic edb9307 support 2007-10-12 23:43:44 +01:00
Makefile.boot [ARM] 3369/1: ep93xx: add core cirrus ep93xx support 2006-03-21 22:06:11 +00:00
micro9.c [ARM] 4047/1: Add initial board support for Contec Hypercontrol Micro9 boards. 2007-02-06 16:46:47 +00:00
ts72xx.c [ARM] 3879/1: ep93xx: instantiate platform devices for ep93xx ethernet 2006-09-30 11:30:45 +01:00