From: Nikhil M Jain Date: Tue, 31 Jan 2023 10:05:19 +0000 (+0530) Subject: board: ti: am62x: evm: Add splash screen support X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=d5f563ccddfeefe624457e137ef76dc203d63c9c;p=u-boot.git 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 --- 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 +#include #include -#include +#include +#include #include #include +#include #include #include -#include +#include 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;