projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b2316
)
QE: Set QE_IRAM_READY after uploading firmware
author
Zhao Qiang
<
[email protected]
>
Mon, 14 Aug 2017 02:22:43 +0000
(10:22 +0800)
committer
York Sun
<
[email protected]
>
Mon, 11 Sep 2017 14:55:36 +0000
(07:55 -0700)
QE_IRAM_READY should be set only after successfully uploading the
firmware.
Signed-off-by: Zhao Qiang <
[email protected]
>
Reviewed-by: York Sun <
[email protected]
>
drivers/qe/qe.c
patch
|
blob
|
history
diff --git
a/drivers/qe/qe.c
b/drivers/qe/qe.c
index 24e764dc7c59ea2aa5bc0d3bdb885cb65bb1185a..8151068432b6230647633eb2e2b7b1ce031c614f 100644
(file)
--- 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