Skip to content

Commit bb2b06e

Browse files
Dennis YC HsiehJassiBrar
authored andcommitted
mailbox: cmdq: support mt6779 gce platform definition
Add gce v4 hardware support with different thread number and shift. Signed-off-by: Dennis YC Hsieh <dennis-yc.hsieh@mediatek.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: Bibby Hsieh <bibby.hsieh@mediatek.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 0858fde commit bb2b06e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,12 @@ static const struct dev_pm_ops cmdq_pm_ops = {
564564

565565
static const struct gce_plat gce_plat_v2 = {.thread_nr = 16};
566566
static const struct gce_plat gce_plat_v3 = {.thread_nr = 24};
567+
static const struct gce_plat gce_plat_v4 = {.thread_nr = 24, .shift = 3};
567568

568569
static const struct of_device_id cmdq_of_ids[] = {
569570
{.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_v2},
570571
{.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_v3},
572+
{.compatible = "mediatek,mt6779-gce", .data = (void *)&gce_plat_v4},
571573
{}
572574
};
573575

0 commit comments

Comments
 (0)