gpio-cdev: re-add nu801 userspace driver
authorChris Blake <chrisrblake93@gmail.com>
Sat, 19 Mar 2022 22:13:42 +0000 (17:13 -0500)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 25 Mar 2022 17:14:13 +0000 (18:14 +0100)
commit3f874519b4200de0d5f78c68dfefe55c42fa0afd
tree37b6e3d00353f1502443dc456d562ca2ad5a08cc
parentcb6f4be13703f0224fc462caaeac14e725c72986
gpio-cdev: re-add nu801 userspace driver

This reverts commit 80b7a8a7f5a0a88fde6dd19f097df4d7cac9ff04.

Now that 5.10 is the default kernel for all platforms, we can
bring back the NU801 userspace driver for platforms that rely
on it. Currently it's used on the MX100 x86_64 target, but
other Meraki platforms use this controller.

Note that we also now change how we load nu801. The way we did
this previously with procd worked, but it meant it didn't load
until everything was up and working.

To fix this, let's call nu801 from boot and re-trigger the
preinit blink sequence. Since nu801 runs as a daemon this is
now something we can do.

Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
(removed empty line, currently only MX100 uses it so: @TARGET_x86)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
package/system/gpio-cdev/nu801/Makefile [new file with mode: 0644]
package/system/gpio-cdev/nu801/files/nu801.init [new file with mode: 0755]
target/linux/x86/base-files/etc/board.d/01_leds
target/linux/x86/modules.mk