nvmem: layouts: onie-tlv: Add new layout driver
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 4 Apr 2023 17:21:31 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Apr 2023 17:41:12 +0000 (19:41 +0200)
commitd3c0d12f6474216bf386101e2449cc73e5c5b61d
tree2bb2ebbd3deff7b8478a6d5139835b4f89f77da6
parentfe191489d66f2bcd7be3cd78645bcefea5a3f68d
nvmem: layouts: onie-tlv: Add new layout driver

This layout applies on top of any non volatile storage device containing
an ONIE table factory flashed. This table follows the tlv
(type-length-value) organization described in the link below. We cannot
afford using regular parsers because the content of these tables is
manufacturer specific and must be dynamically discovered.

Link: https://opencomputeproject.github.io/onie/design-spec/hw_requirements.html
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-24-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/layouts/Kconfig
drivers/nvmem/layouts/Makefile
drivers/nvmem/layouts/onie-tlv.c [new file with mode: 0644]