
On Wed, Jan 14, 2015 at 10:42:40AM +0200, Nikita Kiryanov wrote:
This series consists of updates for cm-fx6. Some of these updates (specifically: compulab: splash: use errno values compulab: splash: refactor splash.c compulab: splash: support multiple splash sources compulab: splash: support loading splash from sf) produce an end result which is not really compulab specific and could be useful for other boards as well, so as a last step in the series this code is converted to common code (common: convert compulab splash load code to common code).
The new feature: CONFIG_SPLASH_SOURCE This user option will enable splash_source.c, a module which implements a standard way for boards to define a collection of splash screen locations, as well as routines for loading the splash image into memory.
When invoked using splash_source_load(locations, size), the module will consult the environment variable "splashsource" and compare its value with the splash location names as provided by board code. If there's a match, that splash location is used. If there's no mach, no splash image will be loaded. If splashsource is left undefined, the first splash location is used as default.
Cc: Stefano Babic sbabic@denx.de Cc: Igor Grinberg grinberg@compulab.co.il Cc: Anatolij Gustschin agust@denx.de
FWIW, I'm fine with this coming either via the imx tree or the video tree, whichever you agree to, Stefano and Anatolij, assuming you're both fine with the code of course.