mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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:
parent
8b02be999c
commit
6f90ec0239
1 changed files with 4 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue