[PATCH 3/9] cmd: Kconfig: Add necessary configs for splash screen at SPL

Simon Glass sjg at chromium.org
Mon Mar 27 10:23:56 CEST 2023


Hi Nikhil,

On Tue, 14 Mar 2023 at 17:50, Nikhil M Jain <n-jain1 at ti.com> wrote:
>
> CONFIG_CMD_BMP and CONFIG_SPLASH_SCREEN enable's splash display at
> only u-boot proper. To enable splash display at SPL stage add SPL
> specific configs, which are SPL_CMD_BMP and SPL_SPLASH_SCREEN.
>
> Signed-off-by: Nikhil M Jain <n-jain1 at ti.com>
> ---
>  cmd/Kconfig | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 2caa4af71c..2f7b820ab8 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -1415,6 +1415,11 @@ config CMD_READ
>         help
>           Provides low-level access to the data in a partition.
>
> +config SPL_CMD_READ
> +       bool "read - Read binary data from a partition"
> +       help
> +         Provides low-level access to the data in a partition at SPL stage.
> +
>  config CMD_REMOTEPROC
>         bool "remoteproc"
>         depends on REMOTEPROC
> @@ -1931,6 +1936,18 @@ config CMD_BMP
>           the image into RAM, then using this command to look at it or display
>           it.
>
> +config SPL_CMD_BMP
> +       bool "Enable 'bmp' command"
> +       depends on SPL_VIDEO
> +       help
> +         This provides a way to obtain information about a BMP-format image
> +         and to display it in spl stage.BMP (which presumably stands for BitMaP) is a
> +         file format defined by Microsoft which supports images of various
> +         depths, formats and compression methods. Headers on the file
> +         determine the formats used. This command can be used by first loading
> +         the image into RAM, then using this command to look at it or display
> +         it.

For this you should split out a new CONFIG_BMP, since commands are not
enabled in SPL.

> +
>  config CMD_BOOTCOUNT
>         bool "bootcount"
>         depends on BOOTCOUNT_LIMIT
> --
> 2.34.1
>

Regards,
Simon


More information about the U-Boot mailing list