[U-Boot] [PATCH] qe: ready QE IRAM after uploading firmware successfully

Zhao Qiang qiang.zhao at nxp.com
Fri Aug 11 08:49:23 UTC 2017


add if condition to check the return value, if 0, firmware is uploaded
successfully, then mark QE_IRAM as ready.

Signed-off-by: Zhao Qiang <qiang.zhao at nxp.com>
---
 drivers/qe/qe.c | 4 ++--
 1 file 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
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list