summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2020-10-29 07:47:43 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-10-30 16:20:27 +0300
commit3149e524fc1e76ec1420cd17588c724d4232a904 (patch)
tree3dbadd9c9d59b7900c00be7ab89ba5ecf9c6b859 /include/image.h
parent1c2d1293f608a367488b5dea7250dda8bb8f1d02 (diff)
downloadu-boot-3149e524fc1e76ec1420cd17588c724d4232a904.tar.xz
common: update: add a generic interface for FIT image
The main purpose of this patch is to separate a generic interface for updating firmware using DFU drivers from "auto-update" via tftp. This function will also be used in implementing UEFI capsule update in a later commit. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 4094ee588a..00bc03bebe 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1602,4 +1602,16 @@ struct fit_loadable_tbl {
.handler = _handler, \
}
+/**
+ * fit_update - update storage with FIT image
+ * @fit: Pointer to FIT image
+ *
+ * Update firmware on storage using FIT image as input.
+ * The storage area to be update will be identified by the name
+ * in FIT and matching it to "dfu_alt_info" variable.
+ *
+ * Return: 0 on success, non-zero otherwise
+ */
+int fit_update(const void *fit);
+
#endif /* __IMAGE_H__ */