generic: platform/mikrotik: add NVMEM layout driver main
authorRobert Marko <robimarko@gmail.com>
Sun, 9 Jun 2024 10:14:25 +0000 (12:14 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 20 Jun 2024 13:53:55 +0000 (15:53 +0200)
commit73a9f9f857947bc63fef1aefb7e2e4b906fb9d2b
treeac4b29fb86b04a00bf258d2bfb6d4bbe22a73475
parent65276193955924c2256f6c93bdfdf6d81ed585ff
generic: platform/mikrotik: add NVMEM layout driver

Currently, information from MikroTik hard_config is only available via
sysfs, meaning that we have to rely on userspace to for example setup MACs.

So, lets provide a basic NVMEM layout based driver to expose the same cells
as sysfs driver exposes.

Do note that the we dont extract the WLAN caldata and BDF-s at this point.

Reviewed-by: Thibaut VARĂˆNE <hacks@slashdirt.org>
Link: https://github.com/openwrt/openwrt/pull/15665
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ath79/mikrotik/config-default
target/linux/generic/files/drivers/platform/mikrotik/Kconfig
target/linux/generic/files/drivers/platform/mikrotik/Makefile
target/linux/generic/files/drivers/platform/mikrotik/rb_nvmem.c [new file with mode: 0644]
target/linux/ipq40xx/mikrotik/config-default
target/linux/ramips/mt7621/config-6.6