Add CONFIG_QCOM_SNAGBOOT_MODE to enable snagboot mode on Qualcomm platforms. This config automatically selects the required dependencies. Express the platform-specific requirements and configs that must be selected and disabled in snagboot mode.
Add QCOM_BOOT0_SNAGBOOT_MODE as a hidden boot0.h config, selected automatically by QCOM_SNAGBOOT_MODE. This boot0.h config is for disabling MMU at the start of U-Boot execution. Signed-off-by: Balaji Selvanathan <[email protected]> --- Changes in v7: - No changes Changes in v5: - Made QCOM_BOOT0_SNAGBOOT_MODE dependent on QCOM_SNAGBOOT_MODE so it is not exposed to users - Add dependencies for QCOM_SNAGBOOT_MODE explicitly as "depends" Changes in v4: - Renamed QCOM_SNAGBOOT_SUPPORT to QCOM_SNAGBOOT_MODE - Added QCOM_BOOT0_SNAGBOOT_MODE for boot0.h which gets selected by QCOM_SNAGBOOT_MODE - Document the platform-specific requirements and configs that must be disabled in snagboot mode. Changes in v3: - Newly introduced in v3 --- arch/arm/mach-snapdragon/Kconfig | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-snapdragon/Kconfig b/arch/arm/mach-snapdragon/Kconfig index ddded0029ef..237395e1d6a 100644 --- a/arch/arm/mach-snapdragon/Kconfig +++ b/arch/arm/mach-snapdragon/Kconfig @@ -82,4 +82,24 @@ config BOOT0_SDM845_WORKAROUND endchoice +config QCOM_BOOT0_SNAGBOOT_MODE + bool + depends on QCOM_SNAGBOOT_MODE + +config QCOM_SNAGBOOT_MODE + bool "Build U-Boot for Snagboot mode loading" + select QCOM_BOOT0_SNAGBOOT_MODE + select ENABLE_ARM_SOC_BOOT0_HOOK + select SKIP_RELOCATE + select ENV_IS_NOWHERE + depends on !ENV_IS_IN_SCSI + depends on !PSCI_RESET + depends on !IOMMU + depends on !SAVE_PREV_BL_INITRAMFS_START_ADDR + depends on COUNTER_FREQUENCY != 0 + depends on TEXT_BASE != 0 + help + Build U-Boot to be loaded in Snagboot mode on Qualcomm platforms + for device/factory provisioning using fastboot. + endif -- 2.34.1
