summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2017-06-06 15:32:40 +0800
committerTom Rini <trini@konsulko.com>2017-06-09 20:34:56 -0400
commit4ac0a32e2448f52ce02a57e23836b3b34b2db378 (patch)
treed9cad9258641cd704628c9598433d9256c5f0815
parent57da153e88c4a71798c04914064183c4ea6125ea (diff)
armv8: Support loading 32-bit OS which is not in the form of FIT
As only FIT image is supported now, this patch is to support loading 32-bit uImage, dtb and rootfs separately. Signed-off-by: Alison Wang <alison.wang@nxp.com> Reviewed-by: Tom Rini <trini@konsulko.com>
-rw-r--r--include/image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h
index 8d380e0e848..fcfe730204a 100644
--- a/include/image.h
+++ b/include/image.h
@@ -785,7 +785,8 @@ static inline int image_check_type(const image_header_t *hdr, uint8_t type)
}
static inline int image_check_arch(const image_header_t *hdr, uint8_t arch)
{
- return (image_get_arch(hdr) == arch);
+ return (image_get_arch(hdr) == arch) ||
+ (image_get_arch(hdr) == IH_ARCH_ARM && arch == IH_ARCH_ARM64);
}
static inline int image_check_os(const image_header_t *hdr, uint8_t os)
{