Skip to contentSkip to conversation

LED: Add LED device support for the Zaurus corgi and spitz models

RFC PATCH In review Richard Purdie 1 participant 1 message Dec 5, 2005

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

RFC PATCH 5/8 LED: Add LED device support for the Zaurus corgi and spitz models

Adds LED drivers for LEDs found on the Sharp Zaurus c7x0 (corgi, shepherd, husky) and cxx00 (akita, spitz, borzoi) models.

arch/arm/mach-pxa/corgi.c +10 -0
Index: linux-2.6.15-rc2/arch/arm/mach-pxa/corgi.c
===================================================================
@@ -165,6 +165,15 @@
 
 
 /*
+ * Corgi LEDs
+ */
+static struct platform_device corgiled_device = {
+	.name		= "corgi-led",
+	.id		= -1,
+};
+
+
+/*
  * Corgi Touch Screen Device
  */
 static struct resource corgits_resources[] = {
@@ -299,6 +308,7 @@
 	&corgikbd_device,
 	&corgibl_device,
 	&corgits_device,
+	&corgiled_device,
 };
 
 static void __init corgi_init(void)
drivers/leds/corgi.c new file +121 -0

121 lines not on this page · raw message

drivers/leds/spitz.c new file +125 -0

125 lines not on this page · raw message

arch/arm/mach-pxa/spitz.c +10 -0
Index: linux-2.6.15-rc2/arch/arm/mach-pxa/spitz.c
===================================================================
@@ -241,6 +241,15 @@
 
 
 /*
+ * Spitz LEDs
+ */
+static struct platform_device spitzled_device = {
+	.name		= "spitz-led",
+	.id		= -1,
+};
+
+
+/*
  * Spitz Touch Screen Device
  */
 static struct resource spitzts_resources[] = {
@@ -418,6 +427,7 @@
 	&spitzkbd_device,
 	&spitzts_device,
 	&spitzbl_device,
+	&spitzled_device,
 };
 
 static void __init common_init(void)
drivers/leds/Kconfig +14 -0
Index: linux-2.6.15-rc2/drivers/leds/Kconfig
===================================================================
@@ -22,6 +22,20 @@
 	  These triggers allow kernel events to drive the LEDs and can
 	  be configured via sysfs. If unsure, say Y.
 
+config LEDS_CORGI
+	tristate "LED Support for the Sharp SL-C7x0 series"
+	depends LEDS_CLASS && PXA_SHARP_C7xx
+	help
+	  This option enables support for the LEDs on Sharp Zaurus
+	  SL-C7x0 series (C700, C750, C760, C860).
+
+config LEDS_SPITZ
+	tristate "LED Support for the Sharp SL-Cxx00 series"
+	depends LEDS_CLASS && PXA_SHARP_Cxx00
+	help
+	  This option enables support for the LEDs on Sharp Zaurus
+	  SL-Cxx00 series (C1000, C3000, C3100).
+
 config LEDS_TRIGGER_TIMER
 	tristate "LED Timer Trigger"
 	depends LEDS_TRIGGERS
drivers/leds/Makefile +4 -0
Index: linux-2.6.15-rc2/drivers/leds/Makefile
===================================================================
@@ -4,5 +4,9 @@
 obj-$(CONFIG_LEDS_CLASS)		+= led_class.o
 obj-$(CONFIG_LEDS_TRIGGERS)		+= led_triggers.o
 
+# LED Platform Drivers
+obj-$(CONFIG_LEDS_CORGI)		+= corgi.o
+obj-$(CONFIG_LEDS_SPITZ)		+= spitz.o
+
 # LED Triggers
 obj-$(CONFIG_LEDS_TRIGGER_TIMER)	+= trig_timer.o