diff options
author | Marian Balakowicz <m8@semihalf.com> | 2008-02-21 16:20:19 (GMT) |
---|---|---|
committer | Marian Balakowicz <m8@semihalf.com> | 2008-02-21 16:20:19 (GMT) |
commit | fff888a1997ff7de9b29e24050fc4a0fd403ba16 (patch) | |
tree | b78ae8fa3cda983eac6f4501fbde79b5fab27ccf /include/image.h | |
parent | 75d3e8fbd93c14d9929d024c75af2d742c76db70 (diff) | |
download | u-boot-fff888a1997ff7de9b29e24050fc4a0fd403ba16.tar.xz |
[new uImage] Add gen_get_image() routine
This routine assures that image (whether legacy or FIT) is not
in a special dataflash storage.
If image address is a dataflash address image is moved to system RAM.
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/image.h b/include/image.h index ecfce72..b4de49d 100644 --- a/include/image.h +++ b/include/image.h @@ -343,6 +343,12 @@ const char* image_get_arch_name (uint8_t arch); const char* image_get_type_name (uint8_t type); const char* image_get_comp_name (uint8_t comp); +#define IMAGE_FORMAT_INVALID 0x00 +#define IMAGE_FORMAT_LEGACY 0x01 +#define IMAGE_FORMAT_FIT 0x02 +int gen_image_get_format (void *img_addr); +ulong gen_get_image (ulong img_addr); + image_header_t* image_get_ramdisk (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[], ulong rd_addr, uint8_t arch, int verify); |