compulab: splash: support multiple splash sources
authorNikita Kiryanov <nikita@compulab.co.il>
Wed, 14 Jan 2015 08:42:51 +0000 (10:42 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 29 Jan 2015 16:42:29 +0000 (17:42 +0100)
commitfd29dd554af6e88ff6d794886e5ab7ba176ace17
treedf8d59d23d52581ed471d8ed3bd422332183c9c7
parent7be4cd2cc54fc494dd550b9893e784bf1f9a31b5
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>
board/compulab/cm_t35/cm_t35.c
board/compulab/common/common.h
board/compulab/common/splash.c