summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2022-10-21 18:15:56 +0530
committerTom Rini <trini@konsulko.com>2022-10-31 14:47:32 -0400
commit554b38f7a532784c72e57f58877fdd922b7a0d9f (patch)
tree59d635502cf346a9b772b4d1b5648e1ebe4817a4 /include
parent2eaedc95164f5831093917bb0424cf1f02d3f4a5 (diff)
downloadu-boot-554b38f7a532784c72e57f58877fdd922b7a0d9f.tar.gz
FWU: Add FWU metadata access driver for GPT partitioned block devices
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formatted with GPT based partition scheme. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/fwu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fwu.h b/include/fwu.h
index a83ea19534..ce99c02618 100644
--- a/include/fwu.h
+++ b/include/fwu.h
@@ -14,6 +14,10 @@
struct fwu_mdata;
struct udevice;
+struct fwu_mdata_gpt_blk_priv {
+ struct udevice *blk_dev;
+};
+
/**
* @mdata_check: check the validity of the FWU metadata partitions
* @get_mdata() - Get a FWU metadata copy