diff options
author | Simon Glass <sjg@chromium.org> | 2023-09-26 08:14:34 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-10-06 14:38:12 -0400 |
commit | 035ab46e3930c8142cae881e08923043632faa51 (patch) | |
tree | 01e274186eab17435c40b330569c7da40dc4f85a /include/spl.h | |
parent | d7c232e6b578940acdf541cd7f88857f1fd1808a (diff) | |
download | u-boot-035ab46e3930c8142cae881e08923043632faa51.tar.gz u-boot-035ab46e3930c8142cae881e08923043632faa51.tar.bz2 u-boot-035ab46e3930c8142cae881e08923043632faa51.zip |
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 <sjg@chromium.org>
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |