OMAP3: RX51: support sleep indicator LEDs
commitea6c7f6e7d8544e79143c279963f89f2c36a2847
authorKevin Hilman <khilman@deeprootsystems.com>
Fri, 2 Oct 2009 15:17:56 +0000 (2 08:17 -0700)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 23 Oct 2009 18:21:53 +0000 (23 11:21 -0700)
tree74f1dd65964f77bde078d1b56d1c30640421a51b
parentfd0cc6f0429c6c1c33d05bab2eb2713d18ce5d67
OMAP3: RX51: support sleep indicator LEDs

The sleep indicator LEDs can be enabled/disabled by toggling GPIO162.
Use the LED GPIO class to export this LED functionality to userspace.

To enable:

  # echo 1 > /sys/class/leds/sleep_ind/brightness

To disable:

  # echo 0 > /sys/class/leds/sleep_ind/brightness

Tested with current PM branch on RX51.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/board-rx51.c