[PATCH 0/2] nvmem: add ONIE NVMEM cells provider
From: Vadym Kochan
Date: Wed May 27 2020 - 16:17:38 EST
This series adds cells provider for the ONIE TLV attributes which are
stored on NVMEM device. It adds possibility to read the mac address (and
other info) by other drivers.
Driver needs to register NVMEM cells table for already registered
NVMEM device, this requires additional change to the core logic because
current logic only allows to add additional cells only before nvmem
device registration.
Vadym Kochan (2):
nvmem: core: allow to register cells for existing device
nvmem: add ONIE NVMEM cells support
drivers/nvmem/Kconfig | 9 ++
drivers/nvmem/Makefile | 3 +
drivers/nvmem/core.c | 61 ++++---
drivers/nvmem/onie-cells.c | 324 +++++++++++++++++++++++++++++++++++++
4 files changed, 375 insertions(+), 22 deletions(-)
create mode 100644 drivers/nvmem/onie-cells.c
--
2.17.1