[PATCH V3 6/6] nvmem: layouts: add U-Boot env layout

Greg Kroah-Hartman gregkh at linuxfoundation.org
Thu Jan 4 16:46:14 CET 2024


On Thu, Dec 21, 2023 at 06:34:21PM +0100, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal at 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 at milecki.pl>
> Reviewed-by: Miquel Raynal <miquel.raynal at 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


More information about the U-Boot mailing list