diff options
author | Zhao Qiang <qiang.zhao@nxp.com> | 2016-02-05 10:04:17 +0800 |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-02-24 08:51:14 -0800 |
commit | d3e6d30cef41d929dcab2ce8dcb93d92319a49a2 (patch) | |
tree | 8ad4ed3514f410ea335b5f2135255bd6d62d2c81 /drivers/qe/qe.c | |
parent | 3bf46e6a6de71a31be05545d59819ca73e367ddc (diff) |
board: ls1043ardb: Add micro QE support for ls1043ardb
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/qe/qe.c')
-rw-r--r-- | drivers/qe/qe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index 31e0e3b4d50..2b98984ef26 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -192,8 +192,7 @@ void qe_init(uint qe_base) #ifdef CONFIG_U_QE void u_qe_init(void) { - uint qe_base = CONFIG_SYS_IMMR + 0x01400000; /* QE immr base */ - qe_immr = (qe_map_t *)qe_base; + qe_immr = (qe_map_t *)(CONFIG_SYS_IMMR + QE_IMMR_OFFSET); u_qe_upload_firmware((const void *)CONFIG_SYS_QE_FW_ADDR); out_be32(&qe_immr->iram.iready, QE_IRAM_READY); @@ -204,9 +203,8 @@ void u_qe_init(void) void u_qe_resume(void) { qe_map_t *qe_immrr; - uint qe_base = CONFIG_SYS_IMMR + QE_IMMR_OFFSET; /* QE immr base */ - qe_immrr = (qe_map_t *)qe_base; + qe_immrr = (qe_map_t *)(CONFIG_SYS_IMMR + QE_IMMR_OFFSET); u_qe_firmware_resume((const void *)CONFIG_SYS_QE_FW_ADDR, qe_immrr); out_be32(&qe_immrr->iram.iready, QE_IRAM_READY); } |