[PATCH v3 4/6] board: nxp: imx9{4,5,52}_evk: Add qb save option in SPL
Marek Vasut
marek.vasut at mailbox.org
Sat Apr 4 01:23:33 CEST 2026
On 4/2/26 11:40 AM, Simona Toaca (OSS) wrote:
[...]
> +++ b/arch/arm/mach-imx/Kconfig
> @@ -71,6 +71,14 @@ 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"
> + depends on SPL && (IMX94 || IMX95 || IMX952)
> + help
> + Automatically save DDR training data (Quickboot data)
> + to current boot device when needed (when OEI runs Training
> + flow and saves qb data to volatile memory).
> +
> config CMD_IMX_QB
> bool "Support the 'qb' command"
> default y
> diff --git a/arch/arm/mach-imx/imx9/Makefile b/arch/arm/mach-imx/imx9/Makefile
> index 3e323a714c1..8b01897b928 100644
> --- a/arch/arm/mach-imx/imx9/Makefile
> +++ b/arch/arm/mach-imx/imx9/Makefile
> @@ -14,6 +14,8 @@ ifneq ($(CONFIG_SPL_BUILD),y)
> obj-y += imx_bootaux.o
> endif
>
> -ifneq ($(CONFIG_XPL_BUILD),y)
> +ifeq ($(CONFIG_XPL_BUILD),y)
> +obj-$(CONFIG_SPL_IMX_QB) += qb.o
> +else
> obj-$(CONFIG_CMD_IMX_QB) += qb.o
> endif
The qb.o should not be gated beyond CONFIG_CMD_IMX_QB , the
CONFIG_CMD_IMX_QB is used to gate cmd_qb.o . Fix this and introduce
CONFIG_IMX_QB to gate the core code, then do this to simplify the
conditional:
obj-$(CONFIG_$(PHASE_)IMX_QB += qb.o
...
Also, changes to arch/ should be part of 1/6 .
More information about the U-Boot
mailing list