diff options
| author | Michael C. Pratt <[email protected]> | 2026-09-03 00:29:58 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-09-04 12:21:12 -0600 |
| commit | 7bf077ec5733a230bbce34d8ce324f92d8c46cc1 (patch) | |
| tree | 0b1526353959de9493d48bb473f83586fc53c76f /src/apps/http | |
| parent | 358c3dc571ee706d8c641cfb092a4b9bc19b9c60 (diff) | |
fw_env: use env-size property for nvmem layout device detection
Since Linux commit 5b2f8c133d98 ("nvmem: layouts: u-boot-env:
add optional "env-size" property"), there is support for providing the size
of the u-boot environment used by the bootloader to the layout NVMEM driver
in order to calculate the CRC if the range is less than the partition size
in a similar fashion that it would be provided in a fw_env.config file.
Devicetree binary cells are always stored in big-endian,
so endian translation is now necessary for this case.
Reuse the buffer that holds the path for opening the compatible sysfs file
for parsing this env-size property and possibly more in the future,
as soon as the correct device is identified with the compatible property.
Signed-off-by: Michael C. Pratt <[email protected]>
Diffstat (limited to 'src/apps/http')
0 files changed, 0 insertions, 0 deletions
