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>
This commit is contained in:
parent
63b2316c5c
commit
a7a81756b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user