]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: ti: am62x: evm: OSPI support for splash screen
authorNikhil M Jain <n-jain1@ti.com>
Thu, 20 Apr 2023 12:11:11 +0000 (17:41 +0530)
committerAnatolij Gustschin <agust@denx.de>
Mon, 24 Apr 2023 19:37:45 +0000 (21:37 +0200)
Add ospi boot media support to load splash image from OSPI memory,
add offset to read image from ospi and necessary flags defininig type
of storage and storage device.

Use CONFIG_IS_ENBALED to use the splash locations at SPL and u-boot
proper.

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
board/ti/am62x/evm.c

index 20b2a70122394252b6f445c7e36c08e6fc1a4735..1b7b439cf5b3f877c59b1fa6c92f9b534a5fe21c 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_SPLASH_SCREEN
+#if CONFIG_IS_ENABLED(SPLASH_SCREEN)
 static struct splash_location default_splash_locations[] = {
+       {
+               .name = "sf",
+               .storage = SPLASH_STORAGE_SF,
+               .flags = SPLASH_STORAGE_RAW,
+               .offset = 0x700000,
+       },
        {
                .name           = "mmc",
                .storage        = SPLASH_STORAGE_MMC,