[ARM] 5612/1: ep93xx: add platform LEDs
authorHartley Sweeten <hartleys@visionengravers.com>
Mon, 20 Jul 2009 17:22:36 +0000 (18:22 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 21 Jul 2009 16:20:48 +0000 (17:20 +0100)
commit3aa7a9a3cf8774f6701b1903a6353f9545f561ce
treeb370a85625ae8c3e0ffc9ac62d84e468734d12ef
parent5d43f11bcf854d83b24c7ca6bb15d9ab9130159f
[ARM] 5612/1: ep93xx: add platform LEDs

The EP93xx has two gpio pins specifically assigned to drive
external LEDs.  Add core support for these LEDs.

On the EDB93xx development boards, the rdled is connected to
an external reset circuit.  Turning this led on for an extended
amount of time will cause the circuit to issue a manual reset.

Refer to Cirrus App Note AN258 for more information.

http://www.cirrus.com/en/pubs/appNote/AN258REV2.pdf

This led can be safely used as the system heartbeat with the
ledtrig-heartbeat driver.

echo heartbeat > /sys/class/leds/platform:rdled/trigger

The grled can be used for any desired purpose.

Tested-by: Matthieu Crapet <mcrapet@gmail.com>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-ep93xx/core.c