]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am62x: evm: Add splash screen support
authorNikhil M Jain <n-jain1@ti.com>
Tue, 31 Jan 2023 10:05:19 +0000 (15:35 +0530)
committerAnatolij Gustschin <agust@denx.de>
Sat, 4 Feb 2023 17:16:56 +0000 (18:16 +0100)
Splash screen function needs splash source information
to load image and display it, splash_location provides
the necessary info, Set default_splash_location to MMC
at partition 1:1. Probe DSS for splash screen display.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
board/ti/am62x/evm.c

index d65ee1d69606d35decfa24a2ed84c1916ff5e9d5..20b2a70122394252b6f445c7e36c08e6fc1a4735 100644 (file)
@@ -7,17 +7,36 @@
  *
  */
 
-#include <asm/io.h>
+#include <env.h>
 #include <spl.h>
-#include <dm/uclass.h>
+#include <video.h>
+#include <splash.h>
 #include <k3-ddrss.h>
 #include <fdt_support.h>
+#include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
-#include <env.h>
+#include <dm/uclass.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_SPLASH_SCREEN
+static struct splash_location default_splash_locations[] = {
+       {
+               .name           = "mmc",
+               .storage        = SPLASH_STORAGE_MMC,
+               .flags          = SPLASH_STORAGE_FS,
+               .devpart        = "1:1",
+       },
+};
+
+int splash_screen_prepare(void)
+{
+       return splash_source_load(default_splash_locations,
+                               ARRAY_SIZE(default_splash_locations));
+}
+#endif
+
 int board_init(void)
 {
        return 0;