ipq5332: Add the SMEM_BOOT_NO_FLASH condition for emmc flash type

This patch adds SMEM_BOOT_NO_FLASH condition for emmc flash type to
flash 0:GPT and 0:GPTBACKUP while flashing single image
using jtag_recovery.cmm

Change-Id: I176760335d5e980b8493e9236e410b78040c5a06
Signed-off-by: Timple Raj M <quic_timple@quicinc.com>
This commit is contained in:
Timple Raj M 2022-12-05 17:08:18 +05:30 committed by Gerrit - the friendly Code Review server
parent 3f02d4e93e
commit 0cee68ca2a

View file

@ -293,11 +293,13 @@ char * const argv[])
#endif
#ifdef CONFIG_QCA_MMC
} else if (sfi->flash_type == SMEM_BOOT_MMC_FLASH) {
} else if (sfi->flash_type == SMEM_BOOT_MMC_FLASH ||
sfi->flash_type == SMEM_BOOT_NO_FLASH) {
blk_dev = mmc_get_dev(mmc_host.dev_num);
if (blk_dev != NULL) {
flash_type = SMEM_BOOT_MMC_FLASH;
if (strncmp(GPT_PART_NAME,
(const char *)part_name,
sizeof(GPT_PART_NAME)) == 0) {