summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-09-24 18:20:15 -0600
committerTom Rini <trini@konsulko.com>2016-10-06 15:08:53 -0400
commit710e9ca5795c9762b09028f1e151981c9052d012 (patch)
tree19e51d8764f39280ed0c9fa154ae12894fcfbf69 /include
parentb4a6c2aae6165782dd9fa4944b38c2c2a7419af1 (diff)
downloadu-boot-imx-710e9ca5795c9762b09028f1e151981c9052d012.zip
u-boot-imx-710e9ca5795c9762b09028f1e151981c9052d012.tar.gz
u-boot-imx-710e9ca5795c9762b09028f1e151981c9052d012.tar.bz2
spl: Update fat functions to take an spl_image parameter
Update the fat loader to avoid using the spl_image global variable. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/spl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/spl.h b/include/spl.h
index 5ef9ae6..1f4f4e5 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -184,9 +184,11 @@ struct spl_image_loader {
}
/* SPL FAT image functions */
-int spl_load_image_fat(struct blk_desc *block_dev, int partition,
+int spl_load_image_fat(struct spl_image_info *spl_image,
+ struct blk_desc *block_dev, int partition,
const char *filename);
-int spl_load_image_fat_os(struct blk_desc *block_dev, int partition);
+int spl_load_image_fat_os(struct spl_image_info *spl_image,
+ struct blk_desc *block_dev, int partition);
void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image);