On Thu, Dec 21, 2023 at 06:34:21PM +0100, Rafał Miłecki wrote:
From: Rafał Miłecki <rafal@milecki.pl>
Move all generic (NVMEM devices independent) code from NVMEM device
driver to NVMEM layout driver. Then add a simple NVMEM layout code on
top of it.
Thanks to proper layout it's possible to support U-Boot env data stored
on any kind of NVMEM device.
For backward compatibility with old DT bindings we need to keep old
NVMEM device driver functional. To avoid code duplication export and
reuse a parsing function.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
V2: Support new compatibles & use device_get_match_data() helper
V3: Use imperative in commit body
IMPORTANT:
This is based on top of the:
[PATCH v6.8 1/2] nvmem: layouts: refactor .add_cells() callback arguments
I applied patches 2-5 in this series, I'll let you rebase the remaining
two after addressing the issues discussed in patch 1.
thanks,
gre gk-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel