Commit a7a81756b8851b84de11c8e755b2e63d907336d4
Committed by
York Sun
1 parent
63b2316c5c
Exists in
smarc_8mq_lf_v2020.04
and in
20 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/qe/qe.c
| ... | ... | @@ -225,8 +225,8 @@ |
| 225 | 225 | flush_cache((ulong)addr, cnt * 512); |
| 226 | 226 | } |
| 227 | 227 | #endif |
| 228 | - u_qe_upload_firmware(addr); | |
| 229 | - out_be32(&qe_immr->iram.iready, QE_IRAM_READY); | |
| 228 | + if (!u_qe_upload_firmware(addr)) | |
| 229 | + out_be32(&qe_immr->iram.iready, QE_IRAM_READY); | |
| 230 | 230 | #ifdef CONFIG_SYS_QE_FMAN_FW_IN_MMC |
| 231 | 231 | free(addr); |
| 232 | 232 | #endif |