summaryrefslogtreecommitdiff
path: root/include/splash.h
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2016-07-01 22:48:16 +0300
committerAnatolij Gustschin <agust@denx.de>2016-07-26 08:47:37 +0200
commitb6de2cd7ee5af536ae67ab5522b69e5c4925f5f2 (patch)
treedb88f0b751661dbbde3789962c30cfa3808184b2 /include/splash.h
parentd7b60fbfa63431eedccac17674311f0055f323fe (diff)
downloadu-boot-b6de2cd7ee5af536ae67ab5522b69e5c4925f5f2.tar.gz
splash: Introduce default_splash_locations
This change introduces default_splash_locations which simplifies splash recovery from the first partition of USB/MMC/SATA drive. Given usual mapping of the first partition of external media for basic boot stuff like uImage/zImage, .dtb etc it looks quite obvious option to put there splash.bmp as well. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Nikita Kiryanov <nikita@compulab.co.il> Cc: Simon Glass <sjg@chromium.org> Cc: Jeroen Hofstee <jeroen@myspectrum.nl> Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'include/splash.h')
-rw-r--r--include/splash.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/splash.h b/include/splash.h
index 25df1cf5ad..136eac7402 100644
--- a/include/splash.h
+++ b/include/splash.h
@@ -47,7 +47,16 @@ struct splash_location {
char *ubivol; /* UBI volume-name for ubifsmount */
};
+#ifdef CONFIG_SPLASH_SOURCE
int splash_source_load(struct splash_location *locations, uint size);
+#else
+static inline int splash_source_load(struct splash_location *locations,
+ uint size)
+{
+ return 0;
+}
+#endif
+
int splash_screen_prepare(void);
#ifdef CONFIG_SPLASH_SCREEN_ALIGN