From a5266d6b5d3d94bbbf7fed572a96aa0e90ff4199 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 4 Jul 2013 13:26:10 -0700 Subject: bootm: Clean up bootz_setup() function This function has no prototype in the headers and passes void * around, thus requiring several casts. Tidy this up. - Add new patch to clean up bootz_setup() function Signed-off-by: Simon Glass --- include/image.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/image.h') diff --git a/include/image.h b/include/image.h index a7b93dbef7..9c3e46f32f 100644 --- a/include/image.h +++ b/include/image.h @@ -662,6 +662,17 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, */ int image_setup_linux(bootm_headers_t *images); +/** + * bootz_setup() - Extract stat and size of a Linux xImage + * + * @image: Address of image + * @start: Returns start address of image + * @end : Returns end address of image + * @return 0 if OK, 1 if the image was not recognised + */ +int bootz_setup(ulong image, ulong *start, ulong *end); + + /*******************************************************************/ /* New uImage format specific code (prefixed with fit_) */ /*******************************************************************/ -- cgit v1.2.3