mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
video: Add function to obtain the U-Boot logo
It is useful to show the logo from other code, coming in a later feature. Add a function to obtain it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
50d562c01f
commit
0d3890188d
2 changed files with 12 additions and 0 deletions
|
@ -406,6 +406,11 @@ int video_sync_copy_all(struct udevice *dev)
|
|||
|
||||
SPLASH_DECL(u_boot_logo);
|
||||
|
||||
void *video_get_u_boot_logo(void)
|
||||
{
|
||||
return SPLASH_START(u_boot_logo);
|
||||
}
|
||||
|
||||
static int show_splash(struct udevice *dev)
|
||||
{
|
||||
u8 *data = SPLASH_START(u_boot_logo);
|
||||
|
|
|
@ -319,4 +319,11 @@ static inline int video_sync_copy_all(struct udevice *dev)
|
|||
*/
|
||||
bool video_is_active(void);
|
||||
|
||||
/**
|
||||
* video_get_u_boot_logo() - Get a pointer to the U-Boot logo
|
||||
*
|
||||
* Returns: Pointer to logo
|
||||
*/
|
||||
void *video_get_u_boot_logo(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue