Skip to contentSkip to conversation

LED: Add device support for tosa

PATCH In review Richard Purdie 1 participant 1 message Jan 31, 2006

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

PATCH 9/11 LED: Add device support for tosa

From: Dirk Opfer <[email protected]>

Adds LED drivers for LEDs found on the Sharp Zaurus c6000 model (tosa).

drivers/leds/Kconfig +7 -0
Index: linux-2.6.15/drivers/leds/Kconfig
===================================================================
@@ -52,6 +52,13 @@
 	  particular board must have LEDs and they must be connected
 	  to the GPIO lines.  If unsure, say Y.
 
+config LEDS_TOSA
+	tristate "LED Support for the Sharp SL-6000 series"
+	depends LEDS_CLASS && PXA_SHARPSL
+	help
+	  This option enables support for the LEDs on Sharp Zaurus
+	  SL-6000 series.
+
 config LEDS_TRIGGER_TIMER
 	tristate "LED Timer Trigger"
 	depends LEDS_TRIGGERS
drivers/leds/Makefile +1 -0
Index: linux-2.6.15/drivers/leds/Makefile
===================================================================
@@ -9,6 +9,7 @@
 obj-$(CONFIG_LEDS_LOCOMO)		+= leds-locomo.o
 obj-$(CONFIG_LEDS_SPITZ)		+= leds-spitz.o
 obj-$(CONFIG_LEDS_IXP4XX)		+= leds-ixp4xx-gpio.o
+obj-$(CONFIG_LEDS_TOSA)			+= leds-tosa.o
 
 # LED Triggers
 obj-$(CONFIG_LEDS_TRIGGER_TIMER)	+= ledtrig-timer.o
drivers/leds/leds-tosa.c new file +123 -0

123 lines not on this page · raw message

arch/arm/mach-pxa/tosa.c +9 -0
Index: linux-2.6.15/arch/arm/mach-pxa/tosa.c
===================================================================
@@ -252,10 +252,19 @@
 	.id		= -1,
 };
 
+/*
+ * Tosa LEDs
+ */
+static struct platform_device tosaled_device = {
+    .name   = "tosa-led",
+    .id     = -1,
+};
+		  
 static struct platform_device *devices[] __initdata = {
 	&tosascoop_device,
 	&tosascoop_jc_device,
 	&tosakbd_device,
+	&tosaled_device,
 };
 
 static void __init tosa_init(void)