summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortomas.melin@vaisala.com <tomas.melin@vaisala.com>2017-01-13 13:20:14 +0200
committerAnatolij Gustschin <agust@denx.de>2017-01-13 17:40:38 +0100
commitdb1b79b886f085b5af09db9378f5c53417c3ecde (patch)
tree5844db57fca174b2ae55ce0b611aaea047d2216b /include
parent7583f1f577db45c37e0c76dc67616347585aeda3 (diff)
downloadu-boot-imx-db1b79b886f085b5af09db9378f5c53417c3ecde.zip
u-boot-imx-db1b79b886f085b5af09db9378f5c53417c3ecde.tar.gz
u-boot-imx-db1b79b886f085b5af09db9378f5c53417c3ecde.tar.bz2
splash: add support for loading splash from a FIT image
Enable support for loading a splash image from within a FIT image. The image is assumed to be generated with mkimage -E flag to hold the data external to the FIT. Signed-off-by: Tomas Melin <tomas.melin@vaisala.com> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'include')
-rw-r--r--include/image.h4
-rw-r--r--include/splash.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h
index 0537678..ad82fda 100644
--- a/include/image.h
+++ b/include/image.h
@@ -872,6 +872,8 @@ int bootz_setup(ulong image, ulong *start, ulong *end);
/* image node */
#define FIT_DATA_PROP "data"
+#define FIT_DATA_OFFSET_PROP "data-offset"
+#define FIT_DATA_SIZE_PROP "data-size"
#define FIT_TIMESTAMP_PROP "timestamp"
#define FIT_DESC_PROP "description"
#define FIT_ARCH_PROP "arch"
@@ -950,6 +952,8 @@ int fit_image_get_load(const void *fit, int noffset, ulong *load);
int fit_image_get_entry(const void *fit, int noffset, ulong *entry);
int fit_image_get_data(const void *fit, int noffset,
const void **data, size_t *size);
+int fit_image_get_data_offset(const void *fit, int noffset, int *data_offset);
+int fit_image_get_data_size(const void *fit, int noffset, int *data_size);
int fit_image_hash_get_algo(const void *fit, int noffset, char **algo);
int fit_image_hash_get_value(const void *fit, int noffset, uint8_t **value,
diff --git a/include/splash.h b/include/splash.h
index 136eac7..228aff4 100644
--- a/include/splash.h
+++ b/include/splash.h
@@ -33,8 +33,9 @@ enum splash_storage {
};
enum splash_flags {
- SPLASH_STORAGE_RAW,
- SPLASH_STORAGE_FS,
+ SPLASH_STORAGE_RAW, /* Stored in raw memory */
+ SPLASH_STORAGE_FS, /* Stored within a file system */
+ SPLASH_STORAGE_FIT, /* Stored inside a FIT image */
};
struct splash_location {