Skip to contentSkip to conversation

Add support for HTC Typhoon leds.

PATCH In review Vivien Chappelier 1 participant 1 message Jun 9, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 10/12 Add support for HTC Typhoon leds.

This patch add support for the HTC Typhoon tricolor led.

---
 arch/arm/mach-omap1/Makefile       |    1 +
 arch/arm/mach-omap1/leds-typhoon.c |  184 ++++++++++++++++++++++++++++++++++++
 arch/arm/mach-omap1/leds.c         |    3 +
 arch/arm/mach-omap1/leds.h         |    1 +
 4 files changed, 189 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap1/leds-typhoon.c
arch/arm/mach-omap1/Makefile +1 -0
index 9f6bcbb..5153e43 100644
@@ -46,4 +46,5 @@ 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
+led-$(CONFIG_MACH_TYPHOON)		+= leds-typhoon.o
 obj-$(CONFIG_LEDS)			+= $(led-y)
arch/arm/mach-omap1/leds-typhoon.c new file +184 -0

184 lines not on this page · raw message

arch/arm/mach-omap1/leds.c +3 -0
index 3f9dcac..59b7135 100644
@@ -28,6 +28,9 @@ omap_leds_init(void)
 	else if (machine_is_omap_osk())
 		leds_event = osk_leds_event;
 
+	else if (machine_is_typhoon())
+		leds_event = typhoon_leds_event;
+
 	else
 		return -1;
 
arch/arm/mach-omap1/leds.h +1 -0
index a1e9fed..1760eb0 100644
@@ -1,3 +1,4 @@
 extern void innovator_leds_event(led_event_t evt);
 extern void h2p2_dbg_leds_event(led_event_t evt);
 extern void osk_leds_event(led_event_t evt);
+extern void typhoon_leds_event(led_event_t evt);
Signature · 1 line
1.5.1.3