summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2017-08-14 02:22:43 (GMT)
committerYork Sun <york.sun@nxp.com>2017-09-11 14:55:36 (GMT)
commita7a81756b8851b84de11c8e755b2e63d907336d4 (patch)
tree393c7dd145b1947b4b72c8dd6af11fe20de9d4ac
parent63b2316c5c4ba0e47d1f69ef1372db4fd89b6bf5 (diff)
downloadu-boot-a7a81756b8851b84de11c8e755b2e63d907336d4.tar.xz
QE: Set QE_IRAM_READY after uploading firmware
QE_IRAM_READY should be set only after successfully uploading the firmware. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r--drivers/qe/qe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index 24e764d..8151068 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -225,8 +225,8 @@ void u_qe_init(void)
flush_cache((ulong)addr, cnt * 512);
}
#endif
- u_qe_upload_firmware(addr);
- out_be32(&qe_immr->iram.iready, QE_IRAM_READY);
+ if (!u_qe_upload_firmware(addr))
+ out_be32(&qe_immr->iram.iready, QE_IRAM_READY);
#ifdef CONFIG_SYS_QE_FMAN_FW_IN_MMC
free(addr);
#endif