Skip to content

Commit

Permalink
scripts: qemu-check.sh: update READY_IPC for imx8
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
iuliana-prodan authored and lgirdwood committed Dec 5, 2022
1 parent 8818e50 commit 6131901
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion scripts/qemu-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,23 @@ do
has_rom=true
;;
imx8 | imx8x | imx8m)
READY_IPC="00 00 00 00 00 00 04 c0"
# This READY_IPC value comes from:
#
# /* Clear GP pending interrupt #0 and #1 */
# imx_mu_xsr_rmw(IMX_MU_VERSION, IMX_MU_GSR,
# IMX_MU_xSR_GIPn(IMX_MU_VERSION, 0) |
# IMX_MU_xSR_GIPn(IMX_MU_VERSION, 1), 0);
# /* Enable GP #0 and #1 for Host -> DSP and DSP -> Host message notification */
# imx_mu_xcr_rmw(IMX_MU_VERSION, IMX_MU_GIER,
# IMX_MU_xCR_GIEn(IMX_MU_VERSION, 0) |
# IMX_MU_xCR_GIEn(IMX_MU_VERSION, 1), 0);
# /* Now interrupt host to tell it we are done booting */
# imx_mu_xcr_rmw(IMX_MU_VERSION, IMX_MU_GCR,
# IMX_MU_xCR_GIRn(IMX_MU_VERSION, 1), 0);
#
# So, "00 00 00 c0 00 00 04 c0" is the MU's xSR and xCR registers:
# xSR: c0000000 and xCR: c0040000
READY_IPC="00 00 00 c0 00 00 04 c0"
SHM_IPC_REG=qemu-bridge-mu-io
SHM_MBOX=qemu-bridge-mbox-io
;;
Expand Down

0 comments on commit 6131901

Please sign in to comment.