[ARM] 4768/2: ixp4xx: Button and LED updates for the nas100d board
commit14645ebabd96d29f3050ea78a6417b6653bc48cf
authorRod Whitby <rod@whitby.id.au>
Mon, 28 Jan 2008 23:29:38 +0000 (29 00:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Feb 2008 13:15:23 +0000 (4 13:15 +0000)
tree3843617246ee0bad21e1aa88fa81e64d1d240069
parent8e93675e5b235291d9dec91af78e01dd4f73629a
[ARM] 4768/2: ixp4xx: Button and LED updates for the nas100d board

 * Convert GPIO and IRQ handling to use the <asm/gpio.h> api.
 * Perform the reset only after the power button has been held down
   for at least two seconds.  Do the reset on the release of the power
   button, so that NAS devices which have been set to auto-power-on (by
   solder bridging the power button) do not continuously power cycle.
 * Remove all superflous constants from nas100d.h
 * Add LED constants to nas100d.h while we're there.
 * Update the board LED setup code to use those constants.

Signed-off-by: Rod Whitby <rod@whitby.id.au>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ixp4xx/nas100d-power.c
arch/arm/mach-ixp4xx/nas100d-setup.c
include/asm-arm/arch-ixp4xx/nas100d.h