
8 Jul
2022
8 Jul
'22
6:39 p.m.
On Thu, Jun 16, 2022 at 08:59:03PM +0200, Rafał Miłecki wrote:
From: Rafał Miłecki rafal@milecki.pl
A new DT binding for describing environment data block has been added in Linux's commit 5db1c2dbc04c ("dt-bindings: nvmem: add U-Boot environment variables binding"). Once we get a proper Linux NVMEM driver it'll be possible to use Linux's binary interface for user-space as documented in the: https://www.kernel.org/doc/html/latest/driver-api/nvmem.html
This commits makes fw_env fallback to looking for a compatible NVMEM device in case config file isn't present. In a long term this may make config files redundant and avoid code (info) duplication.
Signed-off-by: Rafał Miłecki rafal@milecki.pl
Applied to u-boot/next, thanks!
--
Tom