diff options
author | Nikhil M Jain <n-jain1@ti.com> | 2023-04-20 17:41:11 +0530 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2023-04-24 21:37:45 +0200 |
commit | 53ae978af51df7926ffa2e2cd0ab2b5196a66ec8 (patch) | |
tree | 633a7f9385de744bf3cecd429810ebddd3c470c1 | |
parent | 25127ea38841e28b6e9eae37d40e5aa26eab50ef (diff) |
board: ti: am62x: evm: OSPI support for splash screen
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>
-rw-r--r-- | board/ti/am62x/evm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c index 20b2a701223..1b7b439cf5b 100644 --- a/board/ti/am62x/evm.c +++ b/board/ti/am62x/evm.c @@ -20,9 +20,15 @@ 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, .flags = SPLASH_STORAGE_FS, |