]> git.dujemihanovic.xyz Git - u-boot.git/commit
fwu: metadata: add functions for handling version specific metadata fields
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 22 Mar 2024 10:57:20 +0000 (16:27 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 24 May 2024 19:40:03 +0000 (13:40 -0600)
commitfba5b3fa7c473fb356ce206ad2dbfe1c3917edfa
tree86ee700b3ca200eb72c182c58c0d25afa7bbe28d
parent1cafc2ab8d1e9da4d253442aa719895131c0901e
fwu: metadata: add functions for handling version specific metadata fields

Support is being added in U-Boot for version 2 of the FWU
metadata. Support for this version is to co-exist with version 1
support. To achieve this, a common, version agnostic structure has
been added to keep information provided by the FWU metadata
structure.

Add API's to handle the version specific FWU metadata fields. The
version agnostic structure gets initialized at boot by reading the FWU
metadata. Updates to the FWU metadata result in the API's getting
called to populate the version specific fields of the strucure, before
the metadata gets written to the storage media.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Tested-by: Michal Simek <michal.simek@amd.com>
include/fwu.h
lib/fwu_updates/fwu_v1.c [new file with mode: 0644]
lib/fwu_updates/fwu_v2.c [new file with mode: 0644]