[PATCH v3 3/6] arm: snapdragon: Add CONFIG_QCOM_SNAGBOOT_SUPPORT option

Balaji Selvanathan balaji.selvanathan at oss.qualcomm.com
Tue Jun 16 11:22:53 CEST 2026


Add CONFIG_QCOM_SNAGBOOT_SUPPORT to the boot0.h workaround choice
block to enable snagboot mode support on Qualcomm platforms.

This config option automatically selects the
required dependencies: QCOM_COMMAND_DB_OPTIONAL,
ENABLE_ARM_SOC_BOOT0_HOOK to enable early boot hooks, and SKIP_RELOCATE.

Signed-off-by: Balaji Selvanathan <balaji.selvanathan at oss.qualcomm.com>
---
Changes in v3:
- Newly introduced in v3
---
 arch/arm/mach-snapdragon/Kconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig
index 931d25c1023..e173af1ce45 100644
--- a/arch/arm/mach-snapdragon/Kconfig
+++ b/arch/arm/mach-snapdragon/Kconfig
@@ -63,6 +63,19 @@ config QCOM_EL2_GUNYAH_EXIT_SUPPORT
 	  Exit Gunyah hypervisor and switch to EL2 during early boot. This must
 	  happen before EL register configuration in start.S so that U-Boot can
 	  run properly at EL2.
+
+config QCOM_SNAGBOOT_SUPPORT
+	bool "Enable snagboot mode support"
+	select QCOM_COMMAND_DB_OPTIONAL
+	select ENABLE_ARM_SOC_BOOT0_HOOK
+	select SKIP_RELOCATE
+	help
+	  Enable support for running U-Boot in snagboot mode on Qualcomm
+	  platforms. In snagboot mode, XBL loads U-Boot directly for
+	  manufacturing and recovery use cases.
+
+	  This option performs early boot initialization to ensure a clean
+	  state for U-Boot when loaded by XBL in snagboot mode.
 endchoice
 
 endif

-- 
2.34.1



More information about the U-Boot mailing list