]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: H3 leds
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 29 Jun 2005 15:27:35 +0000 (08:27 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 29 Jun 2005 15:27:35 +0000 (08:27 -0700)
Support for LEDs on H3 ... "disco led" on the mainboard, and
four debug board leds act as "red" "amber" "blue" and "green"
through /sys/devices/system/leds/leds0/event commands.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
arch/arm/mach-omap/omap1/Makefile
arch/arm/mach-omap/omap1/leds.c

index d386fd913f0c617a890cf88838b739f9c1f53430..c19772f11dd34d5c71e46c6e9a54e2c8c5a140b3 100644 (file)
@@ -23,6 +23,7 @@ endif
 
 # LEDs support
 led-$(CONFIG_MACH_OMAP_H2)             += leds-h2p2-debug.o
+led-$(CONFIG_MACH_OMAP_H3)             += leds-h2p2-debug.o
 led-$(CONFIG_MACH_OMAP_INNOVATOR)      += leds-innovator.o
 led-$(CONFIG_MACH_OMAP_PERSEUS2)       += leds-h2p2-debug.o
 led-$(CONFIG_MACH_OMAP_OSK)            += leds-osk.o
index 8ab21fe98e1bc388c0e3a40a4b83bb919a88c622..967bf2df060f8e61dcadecfe734ebf6451209948 100644 (file)
@@ -20,7 +20,9 @@ omap_leds_init(void)
        if (machine_is_omap_innovator())
                leds_event = innovator_leds_event;
 
-       else if (machine_is_omap_h2() || machine_is_omap_perseus2())
+       else if (machine_is_omap_h2()
+                       || machine_is_omap_h3()
+                       || machine_is_omap_perseus2())
                leds_event = h2p2_dbg_leds_event;
 
        else if (machine_is_omap_osk())
@@ -30,6 +32,7 @@ omap_leds_init(void)
                return -1;
 
        if (machine_is_omap_h2()
+                       || machine_is_omap_h3()
                        || machine_is_omap_perseus2()
                        || machine_is_omap_osk()) {