board: qca: arm: skip dload magic read on recovery path

Change-Id: I2ddcddc3edf15639155e0002a0bea9a84bda91e1
Signed-off-by: Ram Kumar D <quic_ramd@quicinc.com>
(cherry picked from commit 6546a243fa6a06e2d126fc918212ba18f74be0b5)
This commit is contained in:
Ram Kumar D 2024-08-22 13:03:16 +05:30 committed by sreehari ramanjula
parent 8b02be999c
commit 6f90ec0239

View file

@ -937,13 +937,11 @@ int ipq_read_tcsr_boot_misc(void)
long feat_avail;
qca_smem_flash_info_t *sfi = &qca_smem_flash_info;
/* In recovery path, we dont have TZ. So, perform
* ioread to read the dload magic
/* In recovery path, we dont have TZ. So, skipping
* dload magic read
*/
if (sfi->flash_type == SMEM_BOOT_NO_FLASH) {
dmagic = *(TCSR_BOOT_MISC_REG);
return dmagic;
}
if (sfi->flash_type == SMEM_BOOT_NO_FLASH)
return 0;
/* The TCSR dload register is protected in latest TZ.
* Old TZ will allow direct read.