FWU: Add FWU metadata structure and driver for accessing metadata
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 21 Oct 2022 12:45:55 +0000 (18:15 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2022 18:47:32 +0000 (14:47 -0400)
commit2eaedc95164f5831093917bb0424cf1f02d3f4a5
tree981ca1de84c86b4198eaa34ef80ef3795f0b30c6
parent73981390dfea84b2861d285b2d1b2fd33a84b665
FWU: Add FWU metadata structure and driver for accessing metadata

In the FWU Multi Bank Update feature, the information about the
updatable images is stored as part of the metadata, which is stored on
a dedicated partition. Add the metadata structure, and a driver model
uclass which provides functions to access the metadata. These are
generic API's, and implementations can be added based on parameters
like how the metadata partition is accessed and what type of storage
device houses the metadata.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/fwu-mdata/fwu-mdata-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/fwu.h [new file with mode: 0644]
include/fwu_mdata.h [new file with mode: 0644]
lib/fwu_updates/fwu.c [new file with mode: 0644]