All of lore.kernel.org
 help / color / mirror / Atom feed
From: Devarsh Thakkar <devarsht@ti.com>
To: <u-boot@lists.denx.de>, <sjg@chromium.org>, <agust@denx.de>,
	<trini@konsulko.com>
Cc: <bmeng@tinylab.org>, <xypron.glpk@gmx.de>,
	<patrick.delaunay@foss.st.com>,  <patrice.chotard@foss.st.com>,
	<hvilleneuve@dimonoff.com>, <michal.simek@amd.com>,
	<troykiskyboundary@gmail.com>, <j-humphreys@ti.com>, <afd@ti.com>,
	<praneeth@ti.com>, <nm@ti.com>, <vigneshr@ti.com>,
	<a-bhatia1@ti.com>, <j-luthra@ti.com>, <nsekhar@ti.com>,
	<n-jain1@ti.com>
Subject: Re: [PATCH 4/4] board: ti: am62x: evm: Update simple-framebuffer node in device-tree
Date: Tue, 5 Mar 2024 15:58:39 +0530	[thread overview]
Message-ID: <ec68fa00-b23a-b07a-55e6-1d1e7723167a@ti.com> (raw)
In-Reply-To: <20240222130811.3878567-5-devarsht@ti.com>

Hi,

On 22/02/24 18:38, Devarsh Thakkar wrote:
> Update simple-framebuffer device-tree node by enumerating framebuffer
> related information in existing simple-framebuffer node in Linux
> device-tree file and enabling it.
> 
> In case there is no simple-framebuffer stub detected in Linux kernel
> device-tree and video is still active, then update the device-tree to
> reserve the framebuffer region for the active splash screen.
> 
> This helps preserve the splash screen till the display server takes over
> after OS is booted.
> 
> Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
> ---
>  board/ti/am62x/evm.c | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/board/ti/am62x/evm.c b/board/ti/am62x/evm.c
> index 88e02155ee..c825af3368 100644
> --- a/board/ti/am62x/evm.c
> +++ b/board/ti/am62x/evm.c
> @@ -15,6 +15,7 @@
>  #include <cpu_func.h>
>  #include <k3-ddrss.h>
>  #include <fdt_support.h>
> +#include <fdt_simplefb.h>
>  #include <asm/io.h>
>  #include <asm/arch/hardware.h>
>  #include <dm/uclass.h>
> @@ -118,3 +119,21 @@ void spl_perform_fixups(struct spl_image_info *spl_image)
>  #endif
>  }
>  #endif
> +
> +#if defined(CONFIG_OF_BOARD_SETUP)
> +int ft_board_setup(void *blob, struct bd_info *bd)
> +{
> +	int ret = -1;
> +
> +	if (IS_ENABLED(CONFIG_FDT_SIMPLEFB))
> +		ret = fdt_simplefb_enable_and_mem_rsv(blob);
> +

This needs to be protected with IS_ENABLED(CONFIG_VIDEO) too to avoid below
errors when CONFIG_VIDEO is disabled :

/home/devarsht/ti/ti-u-boot/board/ti/am62x/evm.c:102: undefined reference to
`video_is_active'

aarch64-none-linux-gnu-ld.bfd:
/home/devarsht/ti/ti-u-boot/board/ti/am62x/evm.c:104: undefined reference to
`fdt_add_fb_mem_rsv' \

I will send out a V2 of this patch.

Regards
Devarsh
> +	/* If simplefb is not enabled and video is active, then at least reserve
> +	 * the framebuffer region to preserve the splash screen while OS is booting
> +	 */
> +	if (ret && video_is_active())
> +		return fdt_add_fb_mem_rsv(blob);
> +
> +	return 0;
> +}
> +#endif

  reply	other threads:[~2024-03-05 10:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-22 13:08 [PATCH 0/4] Simplefb and fb reservation related updates Devarsh Thakkar
2024-02-22 13:08 ` [PATCH 1/4] boot: fdt_simplefb: Enumerate framebuffer info from video handoff Devarsh Thakkar
2024-03-06 10:42   ` Nikhil Jain
2024-02-22 13:08 ` [PATCH 2/4] video: Assume video to be active if SPL is passing video hand-off Devarsh Thakkar
2024-03-06 10:46   ` Nikhil Jain
2024-02-22 13:08 ` [PATCH 3/4] boot: Move framebuffer reservation to separate helper Devarsh Thakkar
2024-03-06 10:51   ` Nikhil Jain
2024-02-22 13:08 ` [PATCH 4/4] board: ti: am62x: evm: Update simple-framebuffer node in device-tree Devarsh Thakkar
2024-03-05 10:28   ` Devarsh Thakkar [this message]
2024-03-08 11:08 ` [PATCH 0/4] Simplefb and fb reservation related updates Devarsh Thakkar
2024-04-05 14:49   ` Devarsh Thakkar
2024-04-20 23:09   ` Anatolij Gustschin

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=ec68fa00-b23a-b07a-55e6-1d1e7723167a@ti.com \
    --to=devarsht@ti.com \
    --cc=a-bhatia1@ti.com \
    --cc=afd@ti.com \
    --cc=agust@denx.de \
    --cc=bmeng@tinylab.org \
    --cc=hvilleneuve@dimonoff.com \
    --cc=j-humphreys@ti.com \
    --cc=j-luthra@ti.com \
    --cc=michal.simek@amd.com \
    --cc=n-jain1@ti.com \
    --cc=nm@ti.com \
    --cc=nsekhar@ti.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=praneeth@ti.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=troykiskyboundary@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=vigneshr@ti.com \
    --cc=xypron.glpk@gmx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.