summaryrefslogtreecommitdiffstats
path: root/drivers/nvmem/layouts/Kconfig
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2023-04-04 19:21:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-05 19:41:11 +0200
commitd9fae023fe86069750092fc1c2f3a73e2fb18512 (patch)
tree54b9146fd39f0ccbddebbc54e5abf24bca47a8dc /drivers/nvmem/layouts/Kconfig
parentnvmem: core: provide own priv pointer in post process callback (diff)
downloadlinux-d9fae023fe86069750092fc1c2f3a73e2fb18512.tar.xz
linux-d9fae023fe86069750092fc1c2f3a73e2fb18512.zip
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>
Diffstat (limited to 'drivers/nvmem/layouts/Kconfig')
-rw-r--r--drivers/nvmem/layouts/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/nvmem/layouts/Kconfig b/drivers/nvmem/layouts/Kconfig
index 9ad3911d1605..fd161347c129 100644
--- a/drivers/nvmem/layouts/Kconfig
+++ b/drivers/nvmem/layouts/Kconfig
@@ -2,4 +2,13 @@
menu "Layout Types"
+config NVMEM_LAYOUT_SL28_VPD
+ tristate "Kontron sl28 VPD layout support"
+ select CRC8
+ help
+ Say Y here if you want to support the VPD layout of the Kontron
+ SMARC-sAL28 boards.
+
+ If unsure, say N.
+
endmenu