Skip to contentSkip to conversation

- Add leds support to the HP Jornada 6xx handheld

PATCH/HP6XX Kristoffer Ericson 2 participants 2 messages Feb 5, 2008 – Feb 7, 2008

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

Greetings,

Richard, I've been told from paul that I should seek another solution for my hd6446x.h merger (perhaps mfd driver). So this patch
is against linux-2.6.git with the header and defines changed back to old style. Tested to compile. I tested the "old" patch and that worked and I've only changed 5-6 names so it really should work as before.

shortlog:
This patch adds leds support for the HP Jornada 6xx handheld(s). Usage can either be through /sys/platform.. or by adding various triggers in menuconfig. The leds only support on / off where 0 is off and 1 is on.

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 5 lines · Kristoffer Ericson

Richard, I've been told from paul that I should seek another solution for my hd6446x.h merger (perhaps mfd driver). So this patch is against linux-2.6.git with the header and defines changed back to old style. Tested to compile. I tested the "old" patch and that worked and I've only changed 5-6 names so it really should work as before.

I've added this to the LED tree with a couple of tweaks to the Kconfig entry.

Cheers,

Richard