]> git.itanic.dy.fi Git - linux-stable/commit
nvmem: layouts: sl28vpd: Add new layout driver
authorMichael Walle <michael@walle.cc>
Tue, 4 Apr 2023 17:21:29 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 17:41:11 +0000 (19:41 +0200)
commitd9fae023fe86069750092fc1c2f3a73e2fb18512
tree54b9146fd39f0ccbddebbc54e5abf24bca47a8dc
parent8a134fd9f9323f4c39ec27055b3d3723cfb5c1e9
nvmem: layouts: sl28vpd: Add new layout driver

This layout applies to the VPD of the Kontron sl28 boards. The VPD only
contains a base MAC address. Therefore, we have to add an individual
offset to it. This is done by taking the second argument of the nvmem
phandle into account. Also this let us checking the VPD version and the
checksum.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20230404172148.82422-22-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/layouts/Kconfig
drivers/nvmem/layouts/Makefile
drivers/nvmem/layouts/sl28vpd.c [new file with mode: 0644]