diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2021-06-11 11:45:05 +0300 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-06-11 16:34:52 +0530 |
commit | 481d394e77915201e4ecc2d98e9cc2fbc3224991 (patch) | |
tree | e70d92237caeb8a26ccaae28cd2702aea53e4290 /include/image.h | |
parent | 25805b6f0cf29cbb8db15ae2f0d4801c2f349985 (diff) | |
download | u-boot-481d394e77915201e4ecc2d98e9cc2fbc3224991.tar.gz u-boot-481d394e77915201e4ecc2d98e9cc2fbc3224991.tar.bz2 u-boot-481d394e77915201e4ecc2d98e9cc2fbc3224991.zip |
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.h | 5 |
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)) |