linux/arch/arm
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
..
boot [ARM] 4710/1: Fix coprocessor 14 usage for debug messages via ICEDCC 2007-12-17 17:16:13 +00:00
common Merge branch 'pxa-fixes' 2007-12-08 14:41:29 +00:00
configs [ARM] 4636/1: pxa: add default configuration for zylonite 2007-10-31 15:21:48 +00:00
kernel sched: remove printk_clock() 2008-01-25 21:07:59 +01:00
lib
mach-aaec2000
mach-at91 [ARM] 4691/1: add missing i2c_board_info struct for at91rm9200 2008-01-06 20:25:13 +00:00
mach-clps711x
mach-clps7500
mach-davinci
mach-ebsa110
mach-ep93xx [ARM] 4669/1: ep93xx: simplify GPIO code and cleanups 2008-01-26 14:37:31 +00:00
mach-footbridge
mach-h720x
mach-imx [ARM] 4648/1: i.MX/MX1 ensure more complete AITC initialization 2007-11-26 19:43:37 +00:00
mach-integrator Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-iop13xx
mach-iop32x hwmon: (f75375s) On n2100 systems, set fans to full speed on boot 2007-11-08 08:42:46 -05:00
mach-iop33x
mach-ixp4xx [ARM] 4694/1: IXP4xx: Update clockevent support for shutdown and resume 2007-12-17 17:18:01 +00:00
mach-ixp23xx
mach-ixp2000
mach-ks8695
mach-l7200
mach-lh7a40x
mach-mx3
mach-netx [ARM] 4641/2: netX: fix kobject_name type 2007-11-05 17:19:14 +00:00
mach-ns9xxx
mach-omap1 driver core: make /sys/power a kobject 2008-01-24 20:40:25 -08:00
mach-omap2 [ARM] Fix assignment instead of condition in arm/mach-omap2/clock.c 2007-10-31 15:21:43 +00:00
mach-pnx4008
mach-pxa Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-realview
mach-rpc
mach-s3c2400
mach-s3c2410 Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-s3c2412 Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-s3c2440 Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-s3c2442
mach-s3c2443 Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-sa1100 Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
mach-shark
mach-versatile
mm [ARM] remove useless setting of VM_RESERVED 2007-11-11 10:55:25 +00:00
nwfpe
oprofile Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
plat-iop
plat-mxc
plat-omap Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
plat-s3c
plat-s3c24xx Driver core: change sysdev classes to use dynamic kobject names 2008-01-24 20:40:40 -08:00
tools
vfp [ARM] vfp: fix fuitod/fsitod instructions 2008-01-10 17:07:08 +00:00
Kconfig [ARM] 4668/1: ep93xx: implement new GPIO API 2008-01-26 14:37:31 +00:00
Kconfig-nommu
Kconfig.debug
Kconfig.instrumentation Fix ARM profiling/instrumentation configuration 2008-01-15 09:23:51 -08:00
Makefile