SPARC: added SPARC support for new uimage in common code.
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
This commit is contained in:
parent
00ab32c854
commit
bf3d8b3116
|
@ -1014,7 +1014,7 @@ int boot_get_ramdisk (int argc, char *argv[], bootm_headers_t *images,
|
||||||
return 0;
|
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
|
* boot_ramdisk_high - relocate init ramdisk
|
||||||
* @lmb: pointer to lmb handle, will be used for memory mgmt
|
* @lmb: pointer to lmb handle, will be used for memory mgmt
|
||||||
|
|
|
@ -419,6 +419,8 @@ static inline int image_check_target_arch (image_header_t *hdr)
|
||||||
if (!image_check_arch (hdr, IH_ARCH_PPC))
|
if (!image_check_arch (hdr, IH_ARCH_PPC))
|
||||||
#elif defined(__sh__)
|
#elif defined(__sh__)
|
||||||
if (!image_check_arch (hdr, IH_ARCH_SH))
|
if (!image_check_arch (hdr, IH_ARCH_SH))
|
||||||
|
#elif defined(__sparc__)
|
||||||
|
if (!image_check_arch (hdr, IH_ARCH_SPARC))
|
||||||
#else
|
#else
|
||||||
# error Unknown CPU type
|
# error Unknown CPU type
|
||||||
#endif
|
#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))
|
if (!fit_image_check_arch (fdt, node, IH_ARCH_PPC))
|
||||||
#elif defined(__sh__)
|
#elif defined(__sh__)
|
||||||
if (!fit_image_check_arch (fdt, node, IH_ARCH_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
|
#else
|
||||||
# error Unknown CPU type
|
# error Unknown CPU type
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue