]> git.sur5r.net Git - u-boot/commitdiff
SPARC: added SPARC support for new uimage in common code.
authorDaniel Hellstrom <daniel@gaisler.com>
Fri, 28 Mar 2008 07:29:26 +0000 (08:29 +0100)
committerDaniel Hellstrom <daniel@gaisler.com>
Tue, 8 Apr 2008 07:58:32 +0000 (07:58 +0000)
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
common/image.c
include/image.h

index f04826a5c86d8f5ca0a7c0db8a571a3530b148db..ce49bb24e0da779ab657a85f9081bf77ad7a5c60 100644 (file)
@@ -1014,7 +1014,7 @@ int boot_get_ramdisk (int argc, char *argv[], bootm_headers_t *images,
        return 0;
 }
 
-#if defined(CONFIG_PPC) || defined(CONFIG_M68K)
+#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SPARC)
 /**
  * boot_ramdisk_high - relocate init ramdisk
  * @lmb: pointer to lmb handle, will be used for memory mgmt
index 36143e25acfe3684a751a4ee6a5cf945524ef424..c1a6cbb481e05eac54c2205a9948aa8119a544af 100644 (file)
@@ -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