From eb7cfc495158304e52c4b99416ab3d57c03c3210 Mon Sep 17 00:00:00 2001 From: David Brownell Date: Wed, 29 Jun 2005 08:27:35 -0700 Subject: [PATCH] [PATCH] ARM: OMAP: H3 leds 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 --- arch/arm/mach-omap/omap1/Makefile | 1 + arch/arm/mach-omap/omap1/leds.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap/omap1/Makefile b/arch/arm/mach-omap/omap1/Makefile index d386fd913f0..c19772f11dd 100644 --- a/arch/arm/mach-omap/omap1/Makefile +++ b/arch/arm/mach-omap/omap1/Makefile @@ -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 diff --git a/arch/arm/mach-omap/omap1/leds.c b/arch/arm/mach-omap/omap1/leds.c index 8ab21fe98e1..967bf2df060 100644 --- a/arch/arm/mach-omap/omap1/leds.c +++ b/arch/arm/mach-omap/omap1/leds.c @@ -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()) { -- 2.41.1