mailbox: cmdq: support mt6779 gce platform definition
authorDennis YC Hsieh <dennis-yc.hsieh@mediatek.com>
Sun, 5 Jul 2020 06:37:15 +0000 (14:37 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 4 Aug 2020 04:56:38 +0000 (23:56 -0500)
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>
drivers/mailbox/mtk-cmdq-mailbox.c

index 49d9264..08bd4f1 100644 (file)
@@ -564,10 +564,12 @@ static const struct dev_pm_ops cmdq_pm_ops = {
 
 static const struct gce_plat gce_plat_v2 = {.thread_nr = 16};
 static const struct gce_plat gce_plat_v3 = {.thread_nr = 24};
+static const struct gce_plat gce_plat_v4 = {.thread_nr = 24, .shift = 3};
 
 static const struct of_device_id cmdq_of_ids[] = {
        {.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_v2},
        {.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_v3},
+       {.compatible = "mediatek,mt6779-gce", .data = (void *)&gce_plat_v4},
        {}
 };