[PATCH 3/3] mailbox: mtk-cmdq: add mt6572 support
Roman Vivchar via B4 Relay <[email protected]> Tue, 28 Jul 2026 12:42:48 +0300
| Newsgroups | org.infradead.lists.linux-mediatek,org.infradead.lists.linux-arm-kernel,org.kernel.feeds.b4-sent,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: Roman Vivchar <[email protected]> Add legacy_isa field forwarding to the cmdq helper and a platform data for the mt6572 GCE. Signed-off-by: Roman Vivchar <[email protected]> --- drivers/mailbox/mtk-cmdq-mailbox.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox/mtk-cmdq-mailbox.c index e523c84b4808..5e7bc52baaa1 100644 --- a/drivers/mailbox/mtk-cmdq-mailbox.c +++ b/drivers/mailbox/mtk-cmdq-mailbox.c @@ -99,6 +99,7 @@ struct gce_plat { bool control_by_sw; bool sw_ddr_en; bool gce_vm; + bool legacy_isa; u32 gce_num; }; @@ -119,6 +120,7 @@ void cmdq_get_mbox_priv(struct mbox_chan *chan, struct cmdq_mbox_priv *priv) struct cmdq *cmdq = container_of(chan->mbox, struct cmdq, mbox); priv->shift_pa = cmdq->pdata->shift; + priv->legacy_isa = cmdq->pdata->legacy_isa; priv->mminfra_offset = cmdq->pdata->mminfra_offset; } EXPORT_SYMBOL(cmdq_get_mbox_priv); @@ -787,6 +789,14 @@ static const struct dev_pm_ops cmdq_pm_ops = { cmdq_runtime_resume, NULL) }; +static const struct gce_plat gce_plat_mt6572 = { + .thread_nr = 14, + .shift = 0, + .control_by_sw = false, + .legacy_isa = true, + .gce_num = 1 +}; + static const struct gce_plat gce_plat_mt6779 = { .thread_nr = 24, .shift = 3, @@ -848,6 +858,7 @@ static const struct gce_plat gce_plat_mt8196 = { }; static const struct of_device_id cmdq_of_ids[] = { + {.compatible = "mediatek,mt6572-gce", .data = (void *)&gce_plat_mt6572}, {.compatible = "mediatek,mt6779-gce", .data = (void *)&gce_plat_mt6779}, {.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_mt8173}, {.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_mt8183}, -- 2.54.0