[PATCH 4/5] board: nxp: imx9{4,5}_evk: Add qb save option in SPL
Fabio Estevam
festevam at gmail.com
Tue Mar 10 17:12:28 CET 2026
On Tue, Mar 10, 2026 at 8:44 AM Simona Toaca (OSS)
<simona.toaca at oss.nxp.com> wrote:
>
> From: Simona Toaca <simona.toaca at nxp.com>
>
> Call qb save automatically in the board-specific
> spl_board_init(), if SPL_QB option is enabled. This
> makes sure qb_save is called before any image loading
> is done by the SPL.
Why do we need this? What does "QB" mean?
Please improve the commit message by providing more context and an
explanation of what you want to achieve.
> Signed-off-by: Simona Toaca <simona.toaca at nxp.com>
> ---
> arch/arm/include/asm/mach-imx/qb.h | 2 ++
> arch/arm/mach-imx/Kconfig | 7 +++++++
> arch/arm/mach-imx/imx9/Makefile | 4 +++-
> arch/arm/mach-imx/imx9/qb.c | 9 +++++++++
> board/nxp/imx94_evk/spl.c | 6 +++++-
> board/nxp/imx95_evk/spl.c | 6 +++++-
> 6 files changed, 31 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/include/asm/mach-imx/qb.h b/arch/arm/include/asm/mach-imx/qb.h
> index 5efe68f0a60..4f923d79e7a 100644
> --- a/arch/arm/include/asm/mach-imx/qb.h
> +++ b/arch/arm/include/asm/mach-imx/qb.h
> @@ -10,4 +10,6 @@
>
> bool qb_check(void);
> int qb(int qb_dev, int qb_bootdev, bool save);
> +void spl_qb_save(void);
> +
> #endif
> diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
> index 17aad696648..069b25c6241 100644
> --- a/arch/arm/mach-imx/Kconfig
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -71,6 +71,13 @@ config CSF_SIZE
> Define the maximum size for Command Sequence File (CSF) binary
> this information is used to define the image boot data.
>
> +config SPL_IMX_QB
> + bool "Run qb save during SPL"
What does "qb save" mean? Please explain here and in the commit message.
How does a user know if "qb save" should run in SPL or not?
> + default n
No need to pass "default n". Drop it.
> +void spl_qb_save(void)
> +{
> + int dev = spl_boot_device();
> +
> + /** Save QB data on current boot device */
Please use a single /* instead of /**
More information about the U-Boot
mailing list