summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2008-03-28 08:29:26 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2008-04-08 07:58:32 +0000
commitbf3d8b31169546fcddb4737391e1893fb12d033a (patch)
treeb8a730dd96d1f17f65983a7f1df86d2c8ccd2eb4 /include/image.h
parent00ab32c85405a4fe65fd4128243086210fc90a21 (diff)
downloadu-boot-imx-bf3d8b31169546fcddb4737391e1893fb12d033a.zip
u-boot-imx-bf3d8b31169546fcddb4737391e1893fb12d033a.tar.gz
u-boot-imx-bf3d8b31169546fcddb4737391e1893fb12d033a.tar.bz2
SPARC: added SPARC support for new uimage in common code.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h
index 36143e2..c1a6cbb 100644
--- a/include/image.h
+++ b/include/image.h
@@ -419,6 +419,8 @@ static inline int image_check_target_arch (image_header_t *hdr)
if (!image_check_arch (hdr, IH_ARCH_PPC))
#elif defined(__sh__)
if (!image_check_arch (hdr, IH_ARCH_SH))
+#elif defined(__sparc__)
+ if (!image_check_arch (hdr, IH_ARCH_SPARC))
#else
# error Unknown CPU type
#endif
@@ -571,6 +573,8 @@ static inline int fit_image_check_target_arch (const void *fdt, int node)
if (!fit_image_check_arch (fdt, node, IH_ARCH_PPC))
#elif defined(__sh__)
if (!fit_image_check_arch (fdt, node, IH_ARCH_SH))
+#elif defined(__sparc__)
+ if (!fit_image_check_arch (fdt, node, IH_ARCH_SPARC))
#else
# error Unknown CPU type
#endif