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 <[email protected]> Reviewed-by: CK Hu <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Reviewed-by: Bibby Hsieh <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 0858fde commit bb2b06e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)