Skip to content

Commit df71f78

Browse files
Jason-JH.LinJassiBrar
authored andcommitted
mailbox: mtk-cmdq: Sort cmdq platform data by compatible name
Sort cmdq platform data according to the number sequence of compatible names. 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 0601776 commit df71f78

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,13 @@ static const struct dev_pm_ops cmdq_pm_ops = {
705705
cmdq_runtime_resume, NULL)
706706
};
707707

708+
static const struct gce_plat gce_plat_mt6779 = {
709+
.thread_nr = 24,
710+
.shift = 3,
711+
.control_by_sw = false,
712+
.gce_num = 1
713+
};
714+
708715
static const struct gce_plat gce_plat_mt8173 = {
709716
.thread_nr = 16,
710717
.shift = 0,
@@ -719,10 +726,11 @@ static const struct gce_plat gce_plat_mt8183 = {
719726
.gce_num = 1
720727
};
721728

722-
static const struct gce_plat gce_plat_mt6779 = {
729+
static const struct gce_plat gce_plat_mt8186 = {
723730
.thread_nr = 24,
724731
.shift = 3,
725-
.control_by_sw = false,
732+
.control_by_sw = true,
733+
.sw_ddr_en = true,
726734
.gce_num = 1
727735
};
728736

@@ -740,19 +748,11 @@ static const struct gce_plat gce_plat_mt8195 = {
740748
.gce_num = 2
741749
};
742750

743-
static const struct gce_plat gce_plat_mt8186 = {
744-
.thread_nr = 24,
745-
.shift = 3,
746-
.control_by_sw = true,
747-
.sw_ddr_en = true,
748-
.gce_num = 1
749-
};
750-
751751
static const struct of_device_id cmdq_of_ids[] = {
752+
{.compatible = "mediatek,mt6779-gce", .data = (void *)&gce_plat_mt6779},
752753
{.compatible = "mediatek,mt8173-gce", .data = (void *)&gce_plat_mt8173},
753754
{.compatible = "mediatek,mt8183-gce", .data = (void *)&gce_plat_mt8183},
754755
{.compatible = "mediatek,mt8186-gce", .data = (void *)&gce_plat_mt8186},
755-
{.compatible = "mediatek,mt6779-gce", .data = (void *)&gce_plat_mt6779},
756756
{.compatible = "mediatek,mt8192-gce", .data = (void *)&gce_plat_mt8192},
757757
{.compatible = "mediatek,mt8195-gce", .data = (void *)&gce_plat_mt8195},
758758
{}

0 commit comments

Comments
 (0)