diff options
author | Marian Balakowicz | 2008-02-27 11:02:26 +0100 |
---|---|---|
committer | Marian Balakowicz | 2008-02-27 11:02:26 +0100 |
commit | 4efbe9dbb129f857f27856936112c8c02f016be6 (patch) | |
tree | 436ba586908e214d9457c5093369629f7b8cb5f9 /include/image.h | |
parent | ff0734cff0fb5397ce2f4602f4f3e5ec9c8a36e8 (diff) |
[new uImage] Correct raw FDT blob handlig when CONFIG_FIT is disabled
Dual format image code must properly handle all three FDT passing methods:
- raw FDT blob passed
- FDT blob embedded in the legacy uImage
- FDT blob embedded in the new uImage
This patch enables proper raw FDT handling when no FIT imaeg support
is compiled in. This is a bit tricky as we must dected FIT format even
when FIT uImage handling is not enabled as both FIT uImages and raw FDT
blobs use tha same low level format (libfdt).
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h index 1bc090a1cbf..08566eacec7 100644 --- a/include/image.h +++ b/include/image.h @@ -376,8 +376,9 @@ const char* image_get_comp_name (uint8_t comp); void image_print_contents (image_header_t *hdr); #define IMAGE_FORMAT_INVALID 0x00 -#define IMAGE_FORMAT_LEGACY 0x01 -#define IMAGE_FORMAT_FIT 0x02 +#define IMAGE_FORMAT_LEGACY 0x01 /* legacy image_header based format */ +#define IMAGE_FORMAT_FIT 0x02 /* new, libfdt based format */ + int gen_image_get_format (void *img_addr); ulong gen_get_image (ulong img_addr); |