Skip to contentSkip to conversation

- Add support for leds on the HP Jornada 6xx series

PATCH/LEDS Kristoffer Ericson 2 participants 2 messages Feb 3, 2008

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

Greetings,

Patch against linux-2.6.git (synced today)

shortlog:
The HP Jornada 6xx series have simple leds thats able to produce green or red light. This patch enables the leds to be used by the kernel and/or userland.

Richard please note that this driver makes use of include/asm-sh/hd6446x.h which is a merged header not yet available. I've sent patch to paul but gotten no answer yet. If you cannot commit it for that reason, then please just look through it.

I've confirmed that this patch compiles for me (using local git-tree with header at place) and that it works as expected on jornada.

Best wishes
Kristoffer Ericson

drivers/leds/Kconfig +8 -0
index ec568fa..0b0bca1 100644
@@ -100,6 +100,14 @@ config LEDS_COBALT_RAQ
 	help
 	  This option enables support for the Cobalt Raq series LEDs.
 
+config LEDS_HP6XX
+	bool "LED Support for the HP Jornada 6xx"
+	depends on LEDS_CLASS && SH_HP6XX
+	select LEDS_TRIGGERS
+	help
+	  This option enables led support for the handheld
+	  HP Jornada 620/660/680/690.
+
 config LEDS_GPIO
 	tristate "LED Support for GPIO connected LEDs"
 	depends on LEDS_CLASS && GENERIC_GPIO
drivers/leds/Makefile +1 -0
index a60de1b..a9a8ffb 100644
@@ -19,6 +19,7 @@ obj-$(CONFIG_LEDS_COBALT_QUBE)		+= leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_COBALT_RAQ)		+= leds-cobalt-raq.o
 obj-$(CONFIG_LEDS_GPIO)			+= leds-gpio.o
 obj-$(CONFIG_LEDS_CM_X270)              += leds-cm-x270.o
+obj-$(CONFIG_LEDS_HP6XX)		+= leds-hp6xx.o
 
 # LED Triggers
 obj-$(CONFIG_LEDS_TRIGGER_TIMER)	+= ledtrig-timer.o
drivers/leds/leds-hp6xx.c new file +120 -0

120 lines not on this page · raw message

drivers/leds/Kconfig +8 -0
index ec568fa..0b0bca1 100644
@@ -100,6 +100,14 @@ config LEDS_COBALT_RAQ
 	help
 	  This option enables support for the Cobalt Raq series LEDs.
 
+config LEDS_HP6XX
+	bool "LED Support for the HP Jornada 6xx"
+	depends on LEDS_CLASS && SH_HP6XX
+	select LEDS_TRIGGERS
+	help
+	  This option enables led support for the handheld
+	  HP Jornada 620/660/680/690.
+
 config LEDS_GPIO
 	tristate "LED Support for GPIO connected LEDs"
 	depends on LEDS_CLASS && GENERIC_GPIO
drivers/leds/Makefile +1 -0
index a60de1b..a9a8ffb 100644
@@ -19,6 +19,7 @@ obj-$(CONFIG_LEDS_COBALT_QUBE)		+= leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_COBALT_RAQ)		+= leds-cobalt-raq.o
 obj-$(CONFIG_LEDS_GPIO)			+= leds-gpio.o
 obj-$(CONFIG_LEDS_CM_X270)              += leds-cm-x270.o
+obj-$(CONFIG_LEDS_HP6XX)		+= leds-hp6xx.o
 
 # LED Triggers
 obj-$(CONFIG_LEDS_TRIGGER_TIMER)	+= ledtrig-timer.o
drivers/leds/leds-hp6xx.c new file +120 -0

120 lines not on this page · raw message

#1 lore raw
Quoted 10 lines · Kristoffer Ericson

shortlog:
The HP Jornada 6xx series have simple leds thats able to produce green or red light. This patch enables the leds to be used by the kernel and/or userland.

Richard please note that this driver makes use of include/asm-sh/hd6446x.h which is a merged header not yet available. I've sent patch to paul but gotten no answer yet. If you cannot commit it for that reason, then please just look through it.

It shouldn't really go in until thats been merged. I couldn't see anything wrong with the driver so just let me know when that header has merged...

Cheers,

Richard