Skip to content

Commit 012cc7e

Browse files
Nancy.LinChun-Kuang Hu
authored andcommitted
drm/mediatek: Add mediatek-drm of vdosys1 support for MT8195
Add driver data of mt8195 vdosys1 to mediatek-drm. Signed-off-by: Nancy.Lin <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Tested-by: AngeloGioacchino Del Regno <[email protected]> Tested-by: Bo-Chen Chen <[email protected]> Link: https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 0d9eee9 commit 012cc7e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,12 @@ static const unsigned int mt8195_mtk_ddp_main[] = {
208208
DDP_COMPONENT_DP_INTF0,
209209
};
210210

211+
static const unsigned int mt8195_mtk_ddp_ext[] = {
212+
DDP_COMPONENT_DRM_OVL_ADAPTOR,
213+
DDP_COMPONENT_MERGE5,
214+
DDP_COMPONENT_DP_INTF1,
215+
};
216+
211217
static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = {
212218
.main_path = mt2701_mtk_ddp_main,
213219
.main_len = ARRAY_SIZE(mt2701_mtk_ddp_main),
@@ -277,7 +283,14 @@ static const struct mtk_mmsys_driver_data mt8192_mmsys_driver_data = {
277283
static const struct mtk_mmsys_driver_data mt8195_vdosys0_driver_data = {
278284
.main_path = mt8195_mtk_ddp_main,
279285
.main_len = ARRAY_SIZE(mt8195_mtk_ddp_main),
280-
.mmsys_dev_num = 1,
286+
.mmsys_dev_num = 2,
287+
};
288+
289+
static const struct mtk_mmsys_driver_data mt8195_vdosys1_driver_data = {
290+
.ext_path = mt8195_mtk_ddp_ext,
291+
.ext_len = ARRAY_SIZE(mt8195_mtk_ddp_ext),
292+
.mmsys_id = 1,
293+
.mmsys_dev_num = 2,
281294
};
282295

283296
static const struct of_device_id mtk_drm_of_ids[] = {
@@ -301,6 +314,8 @@ static const struct of_device_id mtk_drm_of_ids[] = {
301314
.data = &mt8195_vdosys0_driver_data},
302315
{ .compatible = "mediatek,mt8195-vdosys0",
303316
.data = &mt8195_vdosys0_driver_data},
317+
{ .compatible = "mediatek,mt8195-vdosys1",
318+
.data = &mt8195_vdosys1_driver_data},
304319
{ }
305320
};
306321
MODULE_DEVICE_TABLE(of, mtk_drm_of_ids);

0 commit comments

Comments
 (0)