[Voyage-linux] kernel questions

netfox (spam-protected)
Thu Sep 4 00:45:33 HKT 2014


My one is not a simple LEDs driver.
It is an I/O driver (a patch over the original Denis Turischev's code) for
the I/Os where the LEDs are attached to in the APU boards in order to use
either the LEDs or the I/Os individually.
It is coded following the kernel GPIO interface so it is easy to use from
the command line (/sys/class/gpio).

Then I built a LED driver on top of the APU GPIO interface using the kernel
LED interface (/sys/class/leds).

So what I propose is the complete stack for those like me who need LEDs and
I/Os in the APU boards at the same time. I'm using one blinking LED for
signaling the system status, and two I/O (as inputs) the one attached to the
APU push button for the system halt, and the another from a UPS for
signaling the low battery and need of shutting down the system.

BTW, at the same time I had to patch the TCO timer driver sp5100_tco.c since
it had a bug (it was not releasing the I/O region after the watchdog setup).



--
View this message in context: http://voyage-linux.34677.n3.nabble.com/kernel-questions-tp4026090p4026127.html
Sent from the Voyage Linux mailing list archive at Nabble.com.



More information about the Voyage-linux mailing list