LED: Add device support for tosa
Subsystems (4)
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).
Signed-off-by Dirk Opfer <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
drivers/leds/Kconfig +7 -0
@@ -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
@@ -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
@@ -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 )