arm64: qca: Added support for booting AARCH64 kernel
check the image header, if the magic signature matches then
perform and indirect jump to 64 bit EL1 through TZ.
Change-Id: I92888faa7ed908652671bf09a4f6d4599340db5b
Signed-off-by: Manoharan Vijaya Raghavan <mraghava@codeaurora.org>
diff --git a/include/image.h b/include/image.h
index 299d6d2..c34c230 100644
--- a/include/image.h
+++ b/include/image.h
@@ -713,7 +713,12 @@
#ifndef IH_ARCH_DEFAULT
# error "please define IH_ARCH_DEFAULT in your arch asm/u-boot.h"
#endif
+#ifdef CONFIG_SCM_TZ64
+ return image_check_arch(hdr, IH_ARCH_DEFAULT) || image_check_arch(hdr,
+ IH_ARCH_ARM64);
+#else
return image_check_arch(hdr, IH_ARCH_DEFAULT);
+#endif
}
#endif /* USE_HOSTCC */
@@ -1097,7 +1102,12 @@
static inline int fit_image_check_target_arch(const void *fdt, int node)
{
#ifndef USE_HOSTCC
+#ifdef CONFIG_SCM_TZ64
+ return fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT) ||
+ fit_image_check_arch(fdt, node, IH_ARCH_ARM64);
+#else
return fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT);
+#endif
#else
return 0;
#endif