Skip to content

Commit cd795fb

Browse files
Jason-JH.LinJassiBrar
authored andcommitted
mailbox: mtk-cmdq: Add CMDQ driver support for mt8188
Add CMDQ driver support for mt8188 by adding its compatible and driver data in CMDQ driver. Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> Reviewed-by: CK Hu <ck.hu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent df71f78 commit cd795fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,13 @@ static const struct gce_plat gce_plat_mt8186 = {
734734
.gce_num = 1
735735
};
736736

737+
static const struct gce_plat gce_plat_mt8188 = {
738+
.thread_nr = 32,
739+
.shift = 3,
740+
.control_by_sw = true,
741+
.gce_num = 2
742+
};
743+
737744
static const struct gce_plat gce_plat_mt8192 = {
738745
.thread_nr = 24,
739746
.shift = 3,
@@ -753,6 +760,7 @@ static const struct of_device_id cmdq_of_ids[] = {
753760
{.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_mt8173},
754761
{.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_mt8183},
755762
{.compatible = "mediatek,mt8186-gce", .data = (void *)&gce_plat_mt8186},
763+
{.compatible = "mediatek,mt8188-gce", .data = (void *)&gce_plat_mt8188},
756764
{.compatible = "mediatek,mt8192-gce", .data = (void *)&gce_plat_mt8192},
757765
{.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195},
758766
{}

0 commit comments

Comments
 (0)