video: Add function to obtain the U-Boot logo
authorSimon Glass <sjg@chromium.org>
Thu, 6 Oct 2022 14:36:09 +0000 (08:36 -0600)
committerAnatolij Gustschin <agust@denx.de>
Sun, 30 Oct 2022 19:01:40 +0000 (20:01 +0100)
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>
drivers/video/video-uclass.c
include/video.h

index 9f22da0..fbe1ad1 100644 (file)
@@ -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);
index 4c216d8..2e68dd7 100644 (file)
@@ -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