summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBin Chen <bin.chen@linaro.org>2018-01-27 16:59:09 +1100
committerTom Rini <trini@konsulko.com>2018-02-07 22:06:11 -0500
commit6808ef9ac2a66a261bf341a99c3edb1e69f1cbdd (patch)
tree06c6405823dc4510fe08da28adb05e516420711b /include
parent104816142f9c6a4c8c164e7541a3424bcf5e8e91 (diff)
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 <bin.chen@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/image.h9
1 files changed, 9 insertions, 0 deletions
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_) */