xref: /openbmc/u-boot/doc/README.splashprepare (revision 870dd3095facaada8b671d55affc2d060355725f)
159b15922SRobert Winkler---------------------------------------------------------------------
259b15922SRobert WinklerSplash Screen
359b15922SRobert Winkler---------------------------------------------------------------------
459b15922SRobert WinklerThe splash_screen_prepare() function is a weak function defined in
559b15922SRobert Winklercommon/splash.c. It is called as part of the splash screen display
659b15922SRobert Winklersequence. It gives the board an opportunity to prepare the splash
759b15922SRobert Winklerimage data before it is processed and sent to the frame buffer by
859b15922SRobert WinklerU-Boot.  Define your own version to use this feature.
9f82eb2faSNikita Kiryanov
10f82eb2faSNikita KiryanovCONFIG_SPLASH_SOURCE
11f82eb2faSNikita Kiryanov
12f82eb2faSNikita KiryanovUse the splash_source.c library. This library provides facilities to declare
13f82eb2faSNikita Kiryanovboard specific splash image locations, routines for loading splash image from
14f82eb2faSNikita Kiryanovsupported locations, and a way of controlling the selected splash location
15f82eb2faSNikita Kiryanovusing the "splashsource" environment variable.
16f82eb2faSNikita Kiryanov
17f82eb2faSNikita Kiryanovsplashsource works as follows:
18f82eb2faSNikita Kiryanov- If splashsource is set to a supported location name as defined by board code,
19f82eb2faSNikita Kiryanov  use that splash location.
20f82eb2faSNikita Kiryanov- If splashsource is undefined, use the first splash location as default.
21f82eb2faSNikita Kiryanov- If splashsource is set to an unsupported value, do not load a splash screen.
22*870dd309SNikita Kiryanov
23*870dd309SNikita KiryanovA splash source location can describe either storage with raw data, or storage
24*870dd309SNikita Kiryanovformatted with a file system. In case of a filesystem, the splash screen data is
25*870dd309SNikita Kiryanovloaded as a file. The name of the splash screen file can be controlled with the
26*870dd309SNikita Kiryanovenvironment variable "splashfile".
27