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>
This commit is contained in:
Lokesh Vutla
2021-06-11 11:45:05 +03:00
parent 25805b6f0c
commit 481d394e77
10 changed files with 20 additions and 10 deletions

View File

@@ -18,7 +18,8 @@
#include <spl.h>
#include <asm/arch/sys_proto.h>
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)
{
struct ti_sci_handle *ti_sci = get_ti_sci_handle();
struct ti_sci_proc_ops *proc_ops = &ti_sci->ops.proc_ops;

View File

@@ -103,7 +103,8 @@ static int k2_hs_bm_auth(int cmd, void *arg1)
return result;
}
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)
{
int result = 0;
void *image = *p_image;

View File

@@ -103,7 +103,8 @@ __weak int board_fit_config_name_match(const char *name)
#endif
#if IS_ENABLED(CONFIG_FIT_IMAGE_POST_PROCESS)
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)
{
if (IS_ENABLED(CONFIG_SOCFPGA_SECURE_VAB_AUTH)) {
if (socfpga_vendor_authentication(p_image, p_size))