Driver for adding support for LEDs and mode switch on PC engines APU boards.
Can be built as a module or linked into kernel.
Upon loading the driver creates four devices. Three led(4) devices:
One for the mode switch:
Reading from /dev/modesw will return '1' or '0' depending upon if mode switch
is pressed or not.
For compiling on latest -current, we just had to replace the getenv() by kern_getenv().
Created attachment 157102 [details]
patch modified as diffs from current (11.0)
Tested on APU. Happy LEDs...
Created attachment 178995 [details]
Module to support LEDs on both APU1 and APU2 boards.
The updated patch has logic to detect if it is running on an APU1 or an APU2 board from PC Engines. It will then add support for all three LEDs and switch on the front of the box.
I've created a phabricator review about this new drivers:
Created attachment 182445 [details]
Updated APU led driver that support APU1, APU2, and APU3
Code in phabricator also updated.