Skip to content

Commit e9a6f5b

Browse files
AngeloGioacchino Del Regnombgg
authored andcommitted
soc: mediatek: mtk-mmsys: Add support for MT6795 Helio X10
Add MMSYS support for the MT6795 SoC using the same mmsys routing table as MT8173 as, for the currently supported usecases (DSI0, DPI0 with no WDMA), these are identical. Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Matthias Brugger <[email protected]>
1 parent b427d85 commit e9a6f5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/soc/mediatek/mtk-mmsys.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ static const struct mtk_mmsys_driver_data mt6779_mmsys_driver_data = {
4141
.clk_driver = "clk-mt6779-mm",
4242
};
4343

44+
static const struct mtk_mmsys_driver_data mt6795_mmsys_driver_data = {
45+
.clk_driver = "clk-mt6795-mm",
46+
.routes = mt8173_mmsys_routing_table,
47+
.num_routes = ARRAY_SIZE(mt8173_mmsys_routing_table),
48+
.sw0_rst_offset = MT8183_MMSYS_SW0_RST_B,
49+
.num_resets = 64,
50+
};
51+
4452
static const struct mtk_mmsys_driver_data mt6797_mmsys_driver_data = {
4553
.clk_driver = "clk-mt6797-mm",
4654
};
@@ -416,6 +424,7 @@ static const struct of_device_id of_match_mtk_mmsys[] = {
416424
{ .compatible = "mediatek,mt2701-mmsys", .data = &mt2701_mmsys_driver_data },
417425
{ .compatible = "mediatek,mt2712-mmsys", .data = &mt2712_mmsys_driver_data },
418426
{ .compatible = "mediatek,mt6779-mmsys", .data = &mt6779_mmsys_driver_data },
427+
{ .compatible = "mediatek,mt6795-mmsys", .data = &mt6795_mmsys_driver_data },
419428
{ .compatible = "mediatek,mt6797-mmsys", .data = &mt6797_mmsys_driver_data },
420429
{ .compatible = "mediatek,mt8167-mmsys", .data = &mt8167_mmsys_driver_data },
421430
{ .compatible = "mediatek,mt8173-mmsys", .data = &mt8173_mmsys_driver_data },

0 commit comments

Comments
 (0)