summaryrefslogtreecommitdiffstats
path: root/include/image.h
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-03-12 10:32:59 +0100
committerMarian Balakowicz <m8@semihalf.com>2008-03-12 10:32:59 +0100
commit3dfe110149311425919e6d6a14b561b4207498f1 (patch)
tree04db3063ff0395bc02327123307d76695042f025 /include/image.h
parentbc8ed486b125452ba3bd8344f052f437329150c5 (diff)
downloadtalos-obmc-uboot-3dfe110149311425919e6d6a14b561b4207498f1.tar.gz
talos-obmc-uboot-3dfe110149311425919e6d6a14b561b4207498f1.zip
[new uImage] Add node offsets for FIT images listed in struct bootm_headers
This patch adds new node offset fields to struct bootm_headers and updates bootm_headers processing code to make use of them. Saved node offsets allow to avoid repeating fit_image_get_node() calls. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h
index 6fca6f4d4d..51c0c896f6 100644
--- a/include/image.h
+++ b/include/image.h
@@ -208,13 +208,16 @@ typedef struct bootm_headers {
#if defined(CONFIG_FIT)
void *fit_hdr_os; /* os FIT image header */
const char *fit_uname_os; /* os subimage node unit name */
+ int fit_noffset_os; /* os subimage node offset */
void *fit_hdr_rd; /* init ramdisk FIT image header */
- const char *fit_uname_rd; /* init ramdisk node unit name */
+ const char *fit_uname_rd; /* init ramdisk subimage node unit name */
+ int fit_noffset_rd; /* init ramdisk subimage node offset */
#if defined(CONFIG_PPC)
void *fit_hdr_fdt; /* FDT blob FIT image header */
- const char *fit_uname_fdt; /* FDT blob node unit name */
+ const char *fit_uname_fdt; /* FDT blob subimage node unit name */
+ int fit_noffset_fdt;/* FDT blob subimage node offset */
#endif
int verify; /* getenv("verify")[0] != 'n' */
int autostart; /* getenv("autostart")[0] != 'n' */
OpenPOWER on IntegriCloud