Skip to contentSkip to conversation

led: ALIX.2 LEDs driver

PATCH In review Constantin Baranov 3 participants 4 messages Nov 4, 2008 – Nov 17, 2008 LED

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 led: ALIX.2 LEDs driver

Driver for PC Engines ALIX.2 and ALIX.3 LEDs.

---
Changes from previous version:
- rename from LEDS_ALIX to LEDS_ALIX2, because driver may not work with possible future ALIX boards
- scan BIOS area (000f0000:000fffff) to ensure that current system is ALIX.2/3
- add module parameter 'force' to allow registering LEDs without BIOS test (e.g. if stock BIOS was upgraded)

 drivers/leds/Kconfig      |    6 +
 drivers/leds/Makefile     |    1 
 drivers/leds/leds-alix2.c |  209 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 216 insertions(+)
drivers/leds/Kconfig +6 -0
diff -uprN linux-2.6.28-rc3/drivers/leds/Kconfig linux-2.6.28-rc3-alix/drivers/leds/Kconfig
@@ -63,6 +63,12 @@ config LEDS_WRAP
 	help
 	  This option enables support for the PCEngines WRAP programmable LEDs.
 
+config LEDS_ALIX2
+	tristate "LED Support for ALIX.2 and ALIX.3 series"
+	depends on LEDS_CLASS && X86 && EXPERIMENTAL
+	help
+	  This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs.
+
 config LEDS_H1940
 	tristate "LED Support for iPAQ H1940 device"
 	depends on LEDS_CLASS && ARCH_H1940
drivers/leds/leds-alix2.c +209 -0

209 lines not on this page · raw message

drivers/leds/Makefile +1 -0
diff -uprN linux-2.6.28-rc3/drivers/leds/Makefile linux-2.6.28-rc3-alix/drivers/leds/Makefile
@@ -11,6 +11,7 @@ obj-$(CONFIG_LEDS_S3C24XX)		+= leds-s3c2
 obj-$(CONFIG_LEDS_AMS_DELTA)		+= leds-ams-delta.o
 obj-$(CONFIG_LEDS_NET48XX)		+= leds-net48xx.o
 obj-$(CONFIG_LEDS_WRAP)			+= leds-wrap.o
+obj-$(CONFIG_LEDS_ALIX2)		+= leds-alix2.o
 obj-$(CONFIG_LEDS_H1940)		+= leds-h1940.o
 obj-$(CONFIG_LEDS_COBALT_QUBE)		+= leds-cobalt-qube.o
 obj-$(CONFIG_LEDS_COBALT_RAQ)		+= leds-cobalt-raq.o
#1 lore raw
Quoted 11 lines · Constantin Baranov

Driver for PC Engines ALIX.2 and ALIX.3 LEDs.

---
Changes from previous version:
- rename from LEDS_ALIX to LEDS_ALIX2, because driver may not work with possible future ALIX boards
- scan BIOS area (000f0000:000fffff) to ensure that current system is ALIX.2/3
- add module parameter 'force' to allow registering LEDs without BIOS test (e.g. if stock BIOS was upgraded)

What kind of ninja mutant system is that? Can't you identify it using DMI or something?

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
#2 lore raw
Quoted 13 lines · Pavel Machek
Quoted 11 lines · Constantin Baranov

Driver for PC Engines ALIX.2 and ALIX.3 LEDs.

---
Changes from previous version:
- rename from LEDS_ALIX to LEDS_ALIX2, because driver may not work with possible future ALIX boards
- scan BIOS area (000f0000:000fffff) to ensure that current system is ALIX.2/3
- add module parameter 'force' to allow registering LEDs without BIOS test (e.g. if stock BIOS was upgraded)

Quoted 3 lines

What kind of ninja mutant system is that? Can't you identify it using DMI or something?

This is minimalistic single board system. It doesn't contain any specific PCI devices. Linux says "DMI not present or invalid."

I has no ideas how to identify ALIX, except the Richard's idea of scanning BIOS.