diff options
author | Nikhil M Jain <n-jain1@ti.com> | 2023-01-31 13:05:19 +0300 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2023-02-04 20:16:56 +0300 |
commit | d5f563ccddfeefe624457e137ef76dc203d63c9c (patch) | |
tree | d200e1c73fc783cfa61dc8e16adde911ec392058 /board | |
parent | 5f9f816bb8e474709d7b81aa27bd73e542fe299a (diff) | |
download | u-boot-d5f563ccddfeefe624457e137ef76dc203d63c9c.tar.xz |
board: ti: am62x: evm: Add splash screen support
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>
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/am62x/evm.c | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index d65ee1d696..20b2a70122 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -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; |