drm/mediatek: dpi/dsi: Change the getting possible_crtc way
authorStu Hsieh <stu.hsieh@mediatek.com>
Wed, 19 Aug 2020 08:17:49 +0000 (10:17 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 27 Aug 2020 23:10:05 +0000 (07:10 +0800)
commit5aa8e76476766c48a4820f57015935429a50b928
tree773975fa7609c8b6e925748735bc2aad0291eafe
parent7bde3c0c172858423dc54b6f2c6aabd1e2dda569
drm/mediatek: dpi/dsi: Change the getting possible_crtc way

For current mediatek dsi encoder, its possible crtc is fixed in crtc
0, and mediatek dpi encoder's possible crtc is fixed in crtc 1. In
some SoC the possible crtc is not fixed in this case, so search
pipeline information to find out the correct possible crtc.

Signed-off-by: Stu Hsieh <stu.hsieh@mediatek.com>
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h
drivers/gpu/drm/mediatek/mtk_dsi.c