summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2021-06-11 11:45:05 +0300
committerLokesh Vutla <lokeshvutla@ti.com>2021-06-11 14:04:52 +0300
commit481d394e77915201e4ecc2d98e9cc2fbc3224991 (patch)
treee70d92237caeb8a26ccaae28cd2702aea53e4290 /include/image.h
parent25805b6f0cf29cbb8db15ae2f0d4801c2f349985 (diff)
downloadu-boot-481d394e77915201e4ecc2d98e9cc2fbc3224991.tar.xz
common: fit: Update board_fit_image_post_process() to pass fit and node_offset
board_fit_image_post_process() passes only start and size of the image, but type of the image is not passed. So pass fit and node_offset, to derive information about image to be processed. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Tero Kristo <kristo@kernel.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 459685d4d4..0c24bf6f35 100644
--- a/include/image.h
+++ b/include/image.h
@@ -1581,11 +1581,14 @@ int board_fit_config_name_match(const char *name);
* into the FIT creation (i.e. the binary blobs would have been pre-processed
* before being added to the FIT image).
*
+ * @fit: pointer to fit image
+ * @node: offset of image node
* @image: pointer to the image start pointer
* @size: pointer to the image size
* @return no return value (failure should be handled internally)
*/
-void board_fit_image_post_process(void **p_image, size_t *p_size);
+void board_fit_image_post_process(const void *fit, int node, void **p_image,
+ size_t *p_size);
#define FDT_ERROR ((ulong)(-1))