]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 9f22da0252898ddcd61d880f28beec142e786ec6..fbe1ad169e9f0a67cf07ee689275a2848de3e7c2 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 4c216d851b63979d1929fe7130721751d383b324..2e68dd717efc2de913ebd31bad6e15f9093d50fc 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