Skip to content

Commit 26fdd23

Browse files
Jason-JH.LinChun-Kuang Hu
authored andcommitted
drm/mediatek: Support dynamic selection of MT8188 VDOSYS0
Move DDP_COMPONENT_DP_INTF0 from mt8188_mtk_ddp_main array to a connector routes array called mt8188_mtk_ddp_main_routes and add DDP_COMPONENT_DSI0 to mt8188_mtk_ddp_main_routes to support dynamic selection capability for mt8188. Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Nathan Lu <nathan.lu@mediatek.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Reviewed-by: Fei Shao <fshao@chromium.org> Tested-by: Fei Shao <fshao@chromium.org> Link: https://patchwork.kernel.org/project/dri-devel/patch/20231004024013.18956-8-jason-jh.lin@mediatek.com/ Link: https://patchwork.kernel.org/project/dri-devel/patch/20231004024013.18956-10-jason-jh.lin@mediatek.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent 00d0352 commit 26fdd23

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ static const unsigned int mt8188_mtk_ddp_main[] = {
186186
DDP_COMPONENT_GAMMA,
187187
DDP_COMPONENT_POSTMASK0,
188188
DDP_COMPONENT_DITHER0,
189-
DDP_COMPONENT_DP_INTF0,
189+
};
190+
191+
static const struct mtk_drm_route mt8188_mtk_ddp_main_routes[] = {
192+
{0, DDP_COMPONENT_DP_INTF0},
193+
{0, DDP_COMPONENT_DSI0},
190194
};
191195

192196
static const unsigned int mt8192_mtk_ddp_main[] = {
@@ -288,6 +292,8 @@ static const struct mtk_mmsys_driver_data mt8186_mmsys_driver_data = {
288292
static const struct mtk_mmsys_driver_data mt8188_vdosys0_driver_data = {
289293
.main_path = mt8188_mtk_ddp_main,
290294
.main_len = ARRAY_SIZE(mt8188_mtk_ddp_main),
295+
.conn_routes = mt8188_mtk_ddp_main_routes,
296+
.num_conn_routes = ARRAY_SIZE(mt8188_mtk_ddp_main_routes),
291297
.mmsys_dev_num = 1,
292298
};
293299

0 commit comments

Comments
 (0)