From: Devarsh Thakkar <devarsht@ti.com>
To: Nikhil M Jain <n-jain1@ti.com>, <u-boot@lists.denx.de>,
<sjg@chromium.org>
Cc: <trini@konsulko.com>, <vigneshr@ti.com>, <nsekhar@ti.com>
Subject: Re: [PATCH V5 12/13] include: Enable video related global data variable and splash at SPL
Date: Mon, 3 Apr 2023 17:11:24 +0530 [thread overview]
Message-ID: <85b3b74a-de19-ee78-301c-e2a42ccb2910@ti.com> (raw)
In-Reply-To: <20230403081443.77933-13-n-jain1@ti.com>
Hi,
On 03/04/23 13:44, Nikhil M Jain wrote:
> To include video related global data variables and splash functions at
> SPL, use CONFIG_IS_ENABLED.
s/at SPL/at both SPL and u-boot proper
>
> Replace CONFIG_CMD_BMP with CONFIG_BMP to enable splash_display function
> at u-boot proper and SPL.
>
> Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
After above change,
Reviewed-by: Devarsh Thakkar <devarsht@ti.com>
Regards
Devarsh
> ---
> V5:
> - Replace CONFIG_CMD_BMP with CONFIG_BMP.
>
> V4:
> - No change.
>
> V3 (patch introduced):
> - Include video related global data variables.
> - Include splash display functions.
>
> include/asm-generic/global_data.h | 4 ++--
> include/splash.h | 6 +++---
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h
> index 987fb66c17..65bf8df1e5 100644
> --- a/include/asm-generic/global_data.h
> +++ b/include/asm-generic/global_data.h
> @@ -68,7 +68,7 @@ struct global_data {
> * @mem_clk: memory clock rate in Hz
> */
> unsigned long mem_clk;
> -#if defined(CONFIG_VIDEO)
> +#if CONFIG_IS_ENABLED(VIDEO)
> /**
> * @fb_base: base address of frame buffer memory
> */
> @@ -359,7 +359,7 @@ struct global_data {
> */
> struct membuff console_in;
> #endif
> -#ifdef CONFIG_VIDEO
> +#if CONFIG_IS_ENABLED(VIDEO)
> /**
> * @video_top: top of video frame buffer area
> */
> diff --git a/include/splash.h b/include/splash.h
> index 33e45e6941..b6a100ffc3 100644
> --- a/include/splash.h
> +++ b/include/splash.h
> @@ -49,7 +49,7 @@ struct splash_location {
> char *ubivol; /* UBI volume-name for ubifsmount */
> };
>
> -#ifdef CONFIG_SPLASH_SOURCE
> +#if CONFIG_IS_ENABLED(SPLASH_SOURCE)
> int splash_source_load(struct splash_location *locations, uint size);
> #else
> static inline int splash_source_load(struct splash_location *locations,
> @@ -61,13 +61,13 @@ static inline int splash_source_load(struct splash_location *locations,
>
> int splash_screen_prepare(void);
>
> -#ifdef CONFIG_SPLASH_SCREEN_ALIGN
> +#if CONFIG_IS_ENABLED(SPLASH_SCREEN_ALIGN)
> void splash_get_pos(int *x, int *y);
> #else
> static inline void splash_get_pos(int *x, int *y) { }
> #endif
>
> -#if defined(CONFIG_SPLASH_SCREEN) && defined(CONFIG_CMD_BMP)
> +#if CONFIG_IS_ENABLED(SPLASH_SCREEN) && CONFIG_IS_ENABLED(BMP)
> int splash_display(void);
> #else
> static inline int splash_display(void)
next prev parent reply other threads:[~2023-04-03 11:41 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-03 8:14 [PATCH V5 00/13] Add splash screen support at u-boot SPL Nikhil M Jain
2023-04-03 8:14 ` [PATCH V5 01/13] drivers: video: Kconfig: Add configs for enabling video at SPL Nikhil M Jain
2023-04-03 8:14 ` [PATCH V5 02/13] drivers: video: tidss: Kconfig: Configs to enable TIDSS " Nikhil M Jain
2023-04-03 10:47 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 03/13] drivers: Makefile: Add rule to compile video driver Nikhil M Jain
2023-04-03 10:48 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 04/13] drivers: video: Makefile: Rule to compile necessary video driver files Nikhil M Jain
2023-04-03 10:51 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 05/13] drivers: video: tidss: Makefile: Add condition to compile TIDSS at SPL Nikhil M Jain
2023-04-03 8:14 ` [PATCH V5 06/13] common: Makefile: Add rule to compile splash and splash_source " Nikhil M Jain
2023-04-03 10:57 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 07/13] common: Kconfig: Add BMP configs Nikhil M Jain
2023-04-03 11:00 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 08/13] cmd: bmp: Split bmp commands and functions Nikhil M Jain
2023-04-03 11:30 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 09/13] common: Makefile: Rule to compile bmp.c Nikhil M Jain
2023-04-03 11:30 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 10/13] drivers: video: Enable necessary video functions at SPL Nikhil M Jain
2023-04-03 8:14 ` [PATCH V5 11/13] common: Enable splash " Nikhil M Jain
2023-04-03 11:35 ` Devarsh Thakkar
2023-04-03 8:14 ` [PATCH V5 12/13] include: Enable video related global data variable and splash " Nikhil M Jain
2023-04-03 11:41 ` Devarsh Thakkar [this message]
2023-04-03 8:14 ` [PATCH V5 13/13] board: ti: am62x: evm: OSPI support for splash screen Nikhil M Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85b3b74a-de19-ee78-301c-e2a42ccb2910@ti.com \
--to=devarsht@ti.com \
--cc=n-jain1@ti.com \
--cc=nsekhar@ti.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox