We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b9b08b commit 23ba2e7Copy full SHA for 23ba2e7
drivers/mailbox/mtk-cmdq-mailbox.c
@@ -38,6 +38,7 @@
38
#define CMDQ_THR_PRIORITY 0x40
39
40
#define GCE_GCTL_VALUE 0x48
41
+#define GCE_CTRL_BY_SW GENMASK(2, 0)
42
43
#define CMDQ_THR_ACTIVE_SLOT_CYCLES 0x3200
44
#define CMDQ_THR_ENABLED 0x1
@@ -129,7 +130,8 @@ static void cmdq_init(struct cmdq *cmdq)
129
130
131
WARN_ON(clk_bulk_enable(cmdq->gce_num, cmdq->clocks));
132
if (cmdq->control_by_sw)
- writel(0x7, cmdq->base + GCE_GCTL_VALUE);
133
+ writel(GCE_CTRL_BY_SW, cmdq->base + GCE_GCTL_VALUE);
134
+
135
writel(CMDQ_THR_ACTIVE_SLOT_CYCLES, cmdq->base + CMDQ_THR_SLOT_CYCLES);
136
for (i = 0; i <= CMDQ_MAX_EVENT; i++)
137
writel(i, cmdq->base + CMDQ_SYNC_TOKEN_UPDATE);
0 commit comments