summaryrefslogtreecommitdiff
path: root/board/compulab/common/common.h
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2015-01-14 10:42:51 +0200
committerStefano Babic <sbabic@denx.de>2015-01-29 17:42:29 +0100
commitfd29dd554af6e88ff6d794886e5ab7ba176ace17 (patch)
treedf8d59d23d52581ed471d8ed3bd422332183c9c7 /board/compulab/common/common.h
parent7be4cd2cc54fc494dd550b9893e784bf1f9a31b5 (diff)
downloadu-boot-imx-fd29dd554af6e88ff6d794886e5ab7ba176ace17.zip
u-boot-imx-fd29dd554af6e88ff6d794886e5ab7ba176ace17.tar.gz
u-boot-imx-fd29dd554af6e88ff6d794886e5ab7ba176ace17.tar.bz2
compulab: splash: support multiple splash sources
Define a generic way for boards to define splash image locations: - introduce struct splash_location - introduce enum splash_storage - update cl_splash_screen_prepare() to take an array of above struct and select the appropriate one based on the splashsource environment variable (if it is not defined- use the first splash location as default). cm-t35 is updated to work with the new interface. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Stefano Babic <sbabic@denx.de> Cc: Igor Grinberg <grinberg@compulab.co.il> Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'board/compulab/common/common.h')
-rw-r--r--board/compulab/common/common.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/board/compulab/common/common.h b/board/compulab/common/common.h
index 80753b4..09b4de6 100644
--- a/board/compulab/common/common.h
+++ b/board/compulab/common/common.h
@@ -24,10 +24,21 @@ static inline int cl_usb_hub_init(int gpio, const char *label)
static inline void cl_usb_hub_deinit(int gpio) {}
#endif /* CONFIG_CMD_USB */
+enum splash_storage {
+ SPLASH_STORAGE_NAND,
+};
+
+struct splash_location {
+ char *name;
+ enum splash_storage storage;
+ u32 offset; /* offset from start of storage */
+};
+
#ifdef CONFIG_SPLASH_SCREEN
-int cl_splash_screen_prepare(int offset);
+int cl_splash_screen_prepare(struct splash_location *locations, uint size);
#else /* !CONFIG_SPLASH_SCREEN */
-static inline int cl_splash_screen_prepare(int offset)
+static inline int cl_splash_screen_prepare(struct splash_location *locations,
+ uint size)
{
return -ENOSYS;
}