diff mbox series

[v4,15/15] board: ti: am62x: evm: OSPI support for splash screen

Message ID 20230329120119.72886-16-n-jain1@ti.com
State Superseded
Delegated to: Anatolij Gustschin
Headers show
Series Add splash screen support at u-boot SPL | expand

Commit Message

Nikhil Jain March 29, 2023, 12:01 p.m. UTC
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>
---
V4:
- Added Reviewed-by tag

V3:
- Enable splash location at SPL

V2:
- no change

 board/ti/am62x/evm.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Comments

Devarsh Thakkar March 30, 2023, 10:50 a.m. UTC | #1
Hi Nikhil

Thanks for the patch.

On 29/03/23 17:31, Nikhil M Jain wrote:
> 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>

Regards
Devarsh
> ---
> V4:
> - Added Reviewed-by tag
> 
> V3:
> - Enable splash location at SPL
> 
> V2:
> - no change
> 
>  board/ti/am62x/evm.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c
> index 584b4ec552..63f7517d11 100644
> --- a/board/ti/am62x/evm.c
> +++ b/board/ti/am62x/evm.c
> @@ -20,8 +20,14 @@
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> -#ifdef CONFIG_SPLASH_SCREEN
> +#ifdef 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,
diff mbox series

Patch

diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c
index 584b4ec552..63f7517d11 100644
--- a/board/ti/am62x/evm.c
+++ b/board/ti/am62x/evm.c
@@ -20,8 +20,14 @@ 
 
 DECLARE_GLOBAL_DATA_PTR;
 
-#ifdef CONFIG_SPLASH_SCREEN
+#ifdef 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,