diff options
author | Simon Glass | 2013-07-04 13:26:10 -0700 |
---|---|---|
committer | Tom Rini | 2013-07-10 09:15:14 -0400 |
commit | a5266d6b5d3d94bbbf7fed572a96aa0e90ff4199 (patch) | |
tree | 9e3081db245b9dbf6704048982131ce807e9253b /include/image.h | |
parent | a26913f32df0d26b94f6c5518d744df5ba6ededb (diff) |
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 <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index a7b93dbef76..9c3e46f32fe 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_) */ /*******************************************************************/ |