Hi all,
This patch adds support for controlling the front LED on Cobalt Server. It has
been tested on Qube 2 with either no default trigger, or the IDE-activity
trigger. Both work fine. Please comment and test !
Thanks
Florian
Signed-off-by: Florian Fainelli <redacted>
diff -urN linux-2.6.19.1/include/asm-mips/mach-cobalt/cobalt.h
linux-2.6.19.1.led/include/asm-mips/mach-cobalt/cobalt.h
error
LED.
+config LEDS_COBALT
+ tristate "LED Support for Cobalt Server front LED"
+ depends on LEDS_CLASS && MIPS_COBALT
+ help
+ This option enables support for the front LED on Cobalt Server
+
comment "LED Triggers"
config LEDS_TRIGGERS
diff -urN linux-2.6.19.1/drivers/leds/leds-cobalt.c
linux-2.6.19.1.led/drivers/leds/leds-cobalt.c
@@ -0,0 +1,55 @@+#include <linux/module.h>+#include <linux/types.h>+#include <linux/kernel.h>+#include <linux/device.h>+#include <linux/leds.h>+#include <asm/mach-cobalt/cobalt.h>++/* Copyright 2006 - Florian Fainelli <florian@openwrt.org>+ *+ * This driver let you control the Cobalt Qube/RaQ front LED+ *+ * 255 (max brightness) -> turn the led on+ * 0 -> turn the led off+ *+ * If you want the LED to be blinking on IDE activity, select the IDE trigger+ */++void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness
Hi,
On Mon, 15 Jan 2007 19:36:52 +0100
Florian Fainelli [off-list ref] wrote:
quoted hunk
Hi all,
This patch adds support for controlling the front LED on Cobalt Server. It has
been tested on Qube 2 with either no default trigger, or the IDE-activity
trigger. Both work fine. Please comment and test !
Thanks
Florian
Signed-off-by: Florian Fainelli <redacted>
diff -urN linux-2.6.19.1/include/asm-mips/mach-cobalt/cobalt.h
linux-2.6.19.1.led/include/asm-mips/mach-cobalt/cobalt.h
Hi Yoichi,
I first used the COBALT_LED_PORT address but it did not work for a reason I
ignore. If I use the COBALT_LED_BASE as defined, which is taken from the CoLo
code, it works fine.
Do know you what could explain this difference ? Can you test it on your
boxes ?
Thank you very much in advance for your answer.
Le lundi 15 janvier 2007 23:42, Yoichi Yuasa a écrit :
Hi,
On Mon, 15 Jan 2007 19:36:52 +0100
Florian Fainelli [off-list ref] wrote:
quoted
Hi all,
This patch adds support for controlling the front LED on Cobalt Server.
It has been tested on Qube 2 with either no default trigger, or the
IDE-activity trigger. Both work fine. Please comment and test !
Thanks
Florian
Signed-off-by: Florian Fainelli <redacted>
diff -urN linux-2.6.19.1/include/asm-mips/mach-cobalt/cobalt.h
linux-2.6.19.1.led/include/asm-mips/mach-cobalt/cobalt.h
Hi Yoichi,
Answering back to myself, since I fixed the stuff using the COBALT_LED_PORT,
here the corrected patch. Can you queue this patch for a commit if it sounds
acceptable to you ?
Thank you very much in advance.
diff -urN linux-2.6.19.1/drivers/leds/leds-cobalt.c
linux-2.6.19.1.led/drivers/leds/leds-cobalt.c
@@ -0,0 +1,55 @@+#include <linux/module.h>+#include <linux/types.h>+#include <linux/kernel.h>+#include <linux/device.h>+#include <linux/leds.h>+#include <asm/mach-cobalt/cobalt.h>++/* Copyright 2006 - Florian Fainelli <florian@openwrt.org>+ *+ * This driver let you control the Cobalt Qube/RaQ front LED+ *+ * 255 (max brightness) -> turn the led on+ * 0 -> turn the led off+ *+ * If you want the LED to be blinking on IDE activity, select the IDE trigger+ */++void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness
Hi Yoichi,
I first used the COBALT_LED_PORT address but it did not work for a reason I
ignore. If I use the COBALT_LED_BASE as defined, which is taken from the
CoLo code, it works fine.
Do know you what could explain this difference ? Can you test it on your
boxes ?
Thank you very much in advance for your answer.
Le lundi 15 janvier 2007 23:42, Yoichi Yuasa a écrit :
quoted
Hi,
On Mon, 15 Jan 2007 19:36:52 +0100
Florian Fainelli [off-list ref] wrote:
quoted
Hi all,
This patch adds support for controlling the front LED on Cobalt Server.
It has been tested on Qube 2 with either no default trigger, or the
IDE-activity trigger. Both work fine. Please comment and test !
Thanks
Florian
Signed-off-by: Florian Fainelli <redacted>
diff -urN linux-2.6.19.1/include/asm-mips/mach-cobalt/cobalt.h
linux-2.6.19.1.led/include/asm-mips/mach-cobalt/cobalt.h
On Tue, Jan 16, 2007 at 12:56:00AM +0100, Florian Fainelli wrote:
Answering back to myself, since I fixed the stuff using the COBALT_LED_PORT,
here the corrected patch. Can you queue this patch for a commit if it sounds
acceptable to you ?
Thank you very much in advance.
Hi Ralf,
This should take into account everything that has been said before.
Thanks.
Signed-off-by: Florian Fainelli <redacted>
diff -urN linux-2.6.19.1/drivers/leds/Kconfig
linux-2.6.19.1.led/drivers/leds/Kconfig
This option enables support for the Soekris net4801 and net4826
error
LED.
+config LEDS_COBALT
+ tristate "LED Support for Cobalt Server front LED"
+ depends on LEDS_CLASS && MIPS_COBALT
+ help
+ This option enables support for the front LED on Cobalt Server
+
comment "LED Triggers"
config LEDS_TRIGGERS
diff -urN linux-2.6.19.1/drivers/leds/leds-cobalt.c
linux-2.6.19.1.led/drivers/leds/leds-cobalt.c
@@ -0,0 +1,55 @@+#include <linux/module.h>+#include <linux/types.h>+#include <linux/kernel.h>+#include <linux/device.h>+#include <linux/leds.h>+#include <asm/mach-cobalt/cobalt.h>++/* Copyright 2006 - Florian Fainelli <florian@openwrt.org>+ *+ * This driver let you control the Cobalt Qube/RaQ front LED+ *+ * 255 (max brightness) -> turn the led on+ * 0 -> turn the led off+ *+ * If you want the LED to be blinking on IDE activity, select the IDE trigger+ */++static void cobalt_led_set(struct led_classdev *led_cdev, enum led_brightness
obj-$(CONFIG_LEDS_S3C24XX) += leds-s3c24xx.o
obj-$(CONFIG_LEDS_AMS_DELTA) += leds-ams-delta.o
obj-$(CONFIG_LEDS_NET48XX) += leds-net48xx.o
+obj-$(CONFIG_LEDS_COBALT) += leds-cobalt.o
# LED Triggers
obj-$(CONFIG_LEDS_TRIGGER_TIMER) += ledtrig-timer.o
Le mercredi 17 janvier 2007 17:46, Ralf Baechle a écrit :
On Tue, Jan 16, 2007 at 12:56:00AM +0100, Florian Fainelli wrote:
quoted
Answering back to myself, since I fixed the stuff using the
COBALT_LED_PORT, here the corrected patch. Can you queue this patch for a
commit if it sounds acceptable to you ?
Thank you very much in advance.
From: Peter Horton <hidden> Date: 2007-01-16 09:53:30
Florian Fainelli wrote:
This patch adds support for controlling the front LED on Cobalt Server. It has
been tested on Qube 2 with either no default trigger, or the IDE-activity
trigger. Both work fine. Please comment and test !
Why did you add COBALT_LED_BASE when there was already a COBALT_LED_PORT
define on the line above ?
All your
*(volatile uint8_t *) COBALT_LED_BASE = n;
can be replaced by
COBALT_LED_PORT = n;
P.
Hi Peter,
The patch I resend last night is using COBALT_LED_PORT. Is there anything else
that needs to be changed ? Thank you in advance for your answer
Le mardi 16 janvier 2007 10:53, Peter Horton a écrit :
Florian Fainelli wrote:
quoted
This patch adds support for controlling the front LED on Cobalt Server.
It has been tested on Qube 2 with either no default trigger, or the
IDE-activity trigger. Both work fine. Please comment and test !
Why did you add COBALT_LED_BASE when there was already a COBALT_LED_PORT
define on the line above ?
All your
*(volatile uint8_t *) COBALT_LED_BASE = n;
can be replaced by
COBALT_LED_PORT = n;
P.
--
Cordialement, Florian Fainelli
---------------------------------------------
5, rue Charles Fourier
Chambre 1202
91011 Evry
http://www.alphacore.net
(+33) 01 60 76 64 21
(+33) 06 09 02 64 95
---------------------------------------------
Association MiNET
http://www.minet.net
---------------------------------------------
Institut National des Télécommunication
http://www.int-evry.fr/telecomint
---------------------------------------------