From 035ab46e3930c8142cae881e08923043632faa51 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Tue, 26 Sep 2023 08:14:34 -0600 Subject: spl: Move the full FIT code to spl_fit.c For some reason this code was put in the main spl.c file. Move it out to the FIT implementation where it belongs. Signed-off-by: Simon Glass --- include/spl.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/spl.h') diff --git a/include/spl.h b/include/spl.h index 6c6ca07dbc..59c508280b 100644 --- a/include/spl.h +++ b/include/spl.h @@ -910,4 +910,15 @@ struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size); void board_boot_order(u32 *spl_boot_list); void spl_save_restore_data(void); + +/** + * spl_load_fit_image() - Fully parse and a FIT image in SPL + * + * @spl_image: SPL Image data to fill in + * @header: Pointer to FIT image + * Return 0 if OK, -ve on error + */ +int spl_load_fit_image(struct spl_image_info *spl_image, + const struct legacy_img_hdr *header); + #endif -- cgit v1.2.3