Skip to content

Commit 6131901

Browse files
iuliana-prodanlgirdwood
authored andcommitted
scripts: qemu-check.sh: update READY_IPC for imx8
Update READY_IPC value based on changes regarding MU reset. READY_IPC value comes from: - clear GP pending interrupt #0 and #1 from MU's xSR register; - enable GP #0 and #1 for Host -> DSP and DSP -> Host message notification from MU's xCR register; - now interrupt host to tell it we are done booting by setting GIRn bit in MU's xCR register. So, "00 00 00 c0 00 00 04 c0" is the MU's xSR and xCR registers: xSR: c0000000 and xCR: c0040000 Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
1 parent 8818e50 commit 6131901

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

scripts/qemu-check.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,23 @@ do
149149
has_rom=true
150150
;;
151151
imx8 | imx8x | imx8m)
152-
READY_IPC="00 00 00 00 00 00 04 c0"
152+
# This READY_IPC value comes from:
153+
#
154+
# /* Clear GP pending interrupt #0 and #1 */
155+
# imx_mu_xsr_rmw(IMX_MU_VERSION, IMX_MU_GSR,
156+
# IMX_MU_xSR_GIPn(IMX_MU_VERSION, 0) |
157+
# IMX_MU_xSR_GIPn(IMX_MU_VERSION, 1), 0);
158+
# /* Enable GP #0 and #1 for Host -> DSP and DSP -> Host message notification */
159+
# imx_mu_xcr_rmw(IMX_MU_VERSION, IMX_MU_GIER,
160+
# IMX_MU_xCR_GIEn(IMX_MU_VERSION, 0) |
161+
# IMX_MU_xCR_GIEn(IMX_MU_VERSION, 1), 0);
162+
# /* Now interrupt host to tell it we are done booting */
163+
# imx_mu_xcr_rmw(IMX_MU_VERSION, IMX_MU_GCR,
164+
# IMX_MU_xCR_GIRn(IMX_MU_VERSION, 1), 0);
165+
#
166+
# So, "00 00 00 c0 00 00 04 c0" is the MU's xSR and xCR registers:
167+
# xSR: c0000000 and xCR: c0040000
168+
READY_IPC="00 00 00 c0 00 00 04 c0"
153169
SHM_IPC_REG=qemu-bridge-mu-io
154170
SHM_MBOX=qemu-bridge-mbox-io
155171
;;

0 commit comments

Comments
 (0)