Enable CONFIG_QCOM_FIT_MULTIDTB and CONFIG_OF_LIBFDT_OVERLAY by
default for Qualcomm Snapdragon platforms to provide automatic DTB
selection from qclinux_fit.img with overlay support.

This allows U-Boot to automatically select the appropriate device
tree based on hardware parameters detected from SMEM, improving
boot compatibility across different hardware variants and reducing
the need for board-specific DTB selection logic.

Additionally, configure platform-specific IMEM sizes required for
storage type detection:
- QCM6490 and QCS615: 0x2B000
- QCS9100: 0x59000

The IMEM size configuration enables proper shared IMEM cookie
access for boot device type detection (UFS/eMMC/NAND), which is
essential for the FIT multi-DTB selection process.

Signed-off-by: Aswin Murugan <[email protected]>
---
 configs/qcm6490_defconfig      | 2 ++
 configs/qcom_defconfig         | 2 ++
 configs/qcom_qcs615_defconfig  | 2 ++
 configs/qcom_qcs9100_defconfig | 1 +
 4 files changed, 7 insertions(+)

diff --git a/configs/qcm6490_defconfig b/configs/qcm6490_defconfig
index 618098c8860..f3caa2a5e86 100644
--- a/configs/qcm6490_defconfig
+++ b/configs/qcm6490_defconfig
@@ -15,3 +15,5 @@ CONFIG_REMAKE_ELF=y
 CONFIG_DEFAULT_DEVICE_TREE="qcom/qcs6490-rb3gen2"
 
 CONFIG_FASTBOOT_BUF_ADDR=0xd8800000
+
+CONFIG_QCOM_IMEM_SIZE=0x2B000
diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig
index fe5880de1fd..314fc0c4903 100644
--- a/configs/qcom_defconfig
+++ b/configs/qcom_defconfig
@@ -12,6 +12,7 @@ CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
 CONFIG_BUTTON_CMD=y
 CONFIG_FIT=y
 CONFIG_FIT_VERBOSE=y
+CONFIG_QCOM_FIT_MULTIDTB=y
 CONFIG_BOOTSTD_FULL=y
 # CONFIG_BOOTMETH_VBE is not set
 CONFIG_BOOTDELAY=1
@@ -48,6 +49,7 @@ CONFIG_CMD_RNG=y
 CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_LOG=y
 CONFIG_OF_LIVE=y
+CONFIG_OF_LIBFDT_OVERLAY=y
 CONFIG_OF_UPSTREAM_BUILD_VENDOR=y
 CONFIG_ENV_USE_DEFAULT_ENV_TEXT_FILE=y
 CONFIG_ENV_DEFAULT_ENV_TEXT_FILE="board/qualcomm/default.env"
diff --git a/configs/qcom_qcs615_defconfig b/configs/qcom_qcs615_defconfig
index 27666a8129d..1f81ec1f14a 100644
--- a/configs/qcom_qcs615_defconfig
+++ b/configs/qcom_qcs615_defconfig
@@ -22,3 +22,5 @@ CONFIG_REMAKE_ELF=y
 CONFIG_TEXT_BASE=0x9fc00000
 
 CONFIG_FASTBOOT_BUF_ADDR=0xa1600000
+
+CONFIG_QCOM_IMEM_SIZE=0x2B000
diff --git a/configs/qcom_qcs9100_defconfig b/configs/qcom_qcs9100_defconfig
index 371448b8b1b..6be85f05fcd 100644
--- a/configs/qcom_qcs9100_defconfig
+++ b/configs/qcom_qcs9100_defconfig
@@ -14,3 +14,4 @@ CONFIG_ENV_IS_IN_SCSI=y
 CONFIG_SCSI_ENV_PART_UUID="71cb9cd0-acf1-b6cb-ad91-be9572fe11a9"
 # CONFIG_ENV_IS_DEFAULT is not set
 # CONFIG_ENV_IS_NOWHERE is not set
+CONFIG_QCOM_IMEM_SIZE=0x59000
-- 
2.34.1

Reply via email to