From 6808ef9ac2a66a261bf341a99c3edb1e69f1cbdd Mon Sep 17 00:00:00 2001 From: Bin Chen Date: Sat, 27 Jan 2018 16:59:09 +1100 Subject: move booti_setup to arch/arm/lig/image.c Follow bootz's pattern by moving the booti_setup to arch/arm/lib. This allows to use booti_setup in other paths, e.g booting an Android image containing Image format. Note that kernel relocation is move out of booti_setup and it is the caller's responsibility to do it and allows them do it differently. say, cmd/booti.c just do a manually, while in the bootm path, we can use bootm_load_os(with some changes). Signed-off-by: Bin Chen Reviewed-by: Tom Rini --- include/image.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/image.h') diff --git a/include/image.h b/include/image.h index c8ce4da901..325b014754 100644 --- a/include/image.h +++ b/include/image.h @@ -871,6 +871,15 @@ int image_setup_linux(bootm_headers_t *images); */ int bootz_setup(ulong image, ulong *start, ulong *end); +/** + * Return the correct start address and size of a Linux aarch64 Image. + * + * @image: Address of image + * @start: Returns start address of image + * @size : Returns size image + * @return 0 if OK, 1 if the image was not recognised + */ +int booti_setup(ulong image, ulong *relocated_addr, ulong *size); /*******************************************************************/ /* New uImage format specific code (prefixed with fit_) */ -- cgit