summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorLokesh Vutla <lokeshvutla@ti.com>2021-03-23 08:03:48 +0000
committerPraneeth Bajjuri <praneeth@ti.com>2021-03-23 17:18:13 -0500
commit4712c225666930dbf8b48d7c17546c18faec9731 (patch)
treeebd0bda61650a2bdc589b434c707d22ce9fa4e1f /common
parenta21a5f160eff88023125db6dfaffa484f8331bba (diff)
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>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c2
-rw-r--r--common/spl/spl_fit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 6a8787ca0a..042585a83f 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -2045,7 +2045,7 @@ int fit_image_load(bootm_headers_t *images, ulong addr,
/* perform any post-processing on the image data */
if (!host_build() && IS_ENABLED(CONFIG_FIT_IMAGE_POST_PROCESS))
- board_fit_image_post_process(&buf, &size);
+ board_fit_image_post_process(fit, noffset, &buf, &size);
len = (ulong)size;
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 6418062b93..55511a90d0 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -317,7 +317,7 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
#endif
#ifdef CONFIG_SPL_FIT_IMAGE_POST_PROCESS
- board_fit_image_post_process(&src, &length);
+ board_fit_image_post_process(fit, node, &src, &length);
#endif
if (IS_ENABLED(CONFIG_SPL_GZIP) && image_comp == IH_COMP_GZIP) {