Commit 2b8cf383 authored by Dennis YC Hsieh's avatar Dennis YC Hsieh Committed by Matthias Brugger

soc: mediatek: cmdq: add address shift in jump

Add address shift when compose jump instruction
to compatible with 35bit format.
Signed-off-by: default avatarDennis YC Hsieh <dennis-yc.hsieh@mediatek.com>
Reviewed-by: default avatarBibby Hsieh <bibby.hsieh@mediatek.com>
Link: https://lore.kernel.org/r/1594136714-11650-2-git-send-email-dennis-yc.hsieh@mediatek.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 11b490c6
...@@ -329,7 +329,8 @@ int cmdq_pkt_finalize(struct cmdq_pkt *pkt) ...@@ -329,7 +329,8 @@ int cmdq_pkt_finalize(struct cmdq_pkt *pkt)
/* JUMP to end */ /* JUMP to end */
inst.op = CMDQ_CODE_JUMP; inst.op = CMDQ_CODE_JUMP;
inst.value = CMDQ_JUMP_PASS; inst.value = CMDQ_JUMP_PASS >>
cmdq_get_shift_pa(((struct cmdq_client *)pkt->cl)->chan);
err = cmdq_pkt_append_command(pkt, inst); err = cmdq_pkt_append_command(pkt, inst);
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment