diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2015-01-14 08:42:51 (GMT) |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-01-29 16:42:29 (GMT) |
commit | fd29dd554af6e88ff6d794886e5ab7ba176ace17 (patch) | |
tree | df8d59d23d52581ed471d8ed3bd422332183c9c7 /board/compulab/cm_t35 | |
parent | 7be4cd2cc54fc494dd550b9893e784bf1f9a31b5 (diff) | |
download | u-boot-fd29dd554af6e88ff6d794886e5ab7ba176ace17.tar.xz |
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/cm_t35')
-rw-r--r-- | board/compulab/cm_t35/cm_t35.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/board/compulab/cm_t35/cm_t35.c b/board/compulab/cm_t35/cm_t35.c index 9a3b2ee..8143c05 100644 --- a/board/compulab/cm_t35/cm_t35.c +++ b/board/compulab/cm_t35/cm_t35.c @@ -59,11 +59,18 @@ void get_board_mem_timings(struct board_sdrc_timings *timings) } #endif -#define CM_T35_SPLASH_NAND_OFFSET 0x100000 +struct splash_location splash_locations[] = { + { + .name = "nand", + .storage = SPLASH_STORAGE_NAND, + .offset = 0x100000, + }, +}; int splash_screen_prepare(void) { - return cl_splash_screen_prepare(CM_T35_SPLASH_NAND_OFFSET); + return cl_splash_screen_prepare(splash_locations, + ARRAY_SIZE(splash_locations)); } /* |