From: Stefan Eichenberger <eichest@gmail.com>
To: francesco.dolcini@toradex.com, sbabic@nabladev.com,
festevam@gmail.com, uboot-imx@nxp.com, trini@konsulko.com,
franz.schnyder@toradex.com, emanuele.ghidoli@toradex.com,
stefan.eichenberger@toradex.com
Cc: u-boot@lists.u-boot-project.org
Subject: [PATCH v1 2/3] board: toradex: smarc-imx95: add SPL quick boot autosave support
Date: Fri, 7 Aug 2026 13:41:53 +0200 [thread overview]
Message-ID: <20260807114200.271420-3-eichest@gmail.com> (raw)
In-Reply-To: <20260807114200.271420-1-eichest@gmail.com>
From: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Add support for the QuickBoot save feature in the SPL for Toradex SMARC
iMX95 modules to speed up boot time by skipping DDR training if a
valid QuickBoot save is found. When CONFIG_SPL_IMX_QB is enabled, the
settings will be stored automatically from the SPL. Otherwise, the
command 'qb save mmc 0:1' must be used.
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
---
board/toradex/smarc-imx95/spl.c | 4 ++++
configs/toradex-smarc-imx95_defconfig | 2 ++
2 files changed, 6 insertions(+)
diff --git a/board/toradex/smarc-imx95/spl.c b/board/toradex/smarc-imx95/spl.c
index ce8da89410b..aebb4a2f0b6 100644
--- a/board/toradex/smarc-imx95/spl.c
+++ b/board/toradex/smarc-imx95/spl.c
@@ -6,6 +6,7 @@
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/boot_mode.h>
#include <asm/mach-imx/ele_api.h>
+#include <asm/mach-imx/qb.h>
#include <asm/sections.h>
#include <asm/global_data.h>
#include <clk.h>
@@ -81,6 +82,9 @@ void spl_board_init(void)
ret = ele_start_rng();
if (ret)
printf("Fail to start RNG: %d\n", ret);
+
+ if (IS_ENABLED(CONFIG_SPL_IMX_QB))
+ spl_imx_qb_save();
}
void board_init_f(ulong dummy)
diff --git a/configs/toradex-smarc-imx95_defconfig b/configs/toradex-smarc-imx95_defconfig
index 9abadb0ed1a..b76d1fb3cd7 100644
--- a/configs/toradex-smarc-imx95_defconfig
+++ b/configs/toradex-smarc-imx95_defconfig
@@ -26,6 +26,7 @@ CONFIG_SYS_LOAD_ADDR=0x90400000
CONFIG_WATCHDOG_TIMEOUT_MSECS=30000
CONFIG_SPL=y
CONFIG_SPL_RECOVER_DATA_SECTION=y
+CONFIG_SPL_IMX_QB=y
CONFIG_PCI=y
CONFIG_SYS_MEMTEST_START=0x90000000
CONFIG_SYS_MEMTEST_END=0xA0000000
@@ -59,6 +60,7 @@ CONFIG_SPL_SYS_MMCSD_RAW_MODE=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x1040
CONFIG_SPL_I2C=y
CONFIG_SPL_DM_MAILBOX=y
+CONFIG_SPL_MMC_WRITE=y
CONFIG_SPL_POWER_DOMAIN=y
CONFIG_SPL_THERMAL=y
CONFIG_SPL_WATCHDOG=y
--
2.55.0
next prev parent reply other threads:[~2026-08-07 14:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-07 11:41 [PATCH v1 0/3] board: toradex: *-imx95: add support for Quickboot autosave in SPL Stefan Eichenberger
2026-08-07 11:41 ` [PATCH v1 1/3] board: toradex: verdin-imx95: add SPL quick boot autosave support Stefan Eichenberger
2026-08-07 11:41 ` Stefan Eichenberger [this message]
2026-08-07 11:41 ` [PATCH v1 3/3] board: toradex: aquila-imx95: " Stefan Eichenberger
2026-08-10 15:57 ` [PATCH v1 0/3] board: toradex: *-imx95: add support for Quickboot autosave in SPL Francesco Dolcini
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=20260807114200.271420-3-eichest@gmail.com \
--to=eichest@gmail.com \
--cc=emanuele.ghidoli@toradex.com \
--cc=festevam@gmail.com \
--cc=francesco.dolcini@toradex.com \
--cc=franz.schnyder@toradex.com \
--cc=sbabic@nabladev.com \
--cc=stefan.eichenberger@toradex.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=uboot-imx@nxp.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