Skip to content

Commit 8ac6935

Browse files
Hsiao Chien SungChun-Kuang Hu
authored andcommitted
drm/mediatek: Remove the redundant driver data for DPI
DPI input is in 1T2P mode on both MT8195 and MT8188. Remove the redundant driver data to align the settings, or the screen will glitch. Fixes: 2847cd7 ("drm/mediatek: Add mt8188 dpi compatibles and platform data") Reviewed-by: CK Hu <ck.hu@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20231214055847.4936-22-shawn.sung@mediatek.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent 21b2871 commit 8ac6935

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -966,20 +966,6 @@ static const struct mtk_dpi_conf mt8186_conf = {
966966
.csc_enable_bit = CSC_ENABLE,
967967
};
968968

969-
static const struct mtk_dpi_conf mt8188_dpintf_conf = {
970-
.cal_factor = mt8195_dpintf_calculate_factor,
971-
.max_clock_khz = 600000,
972-
.output_fmts = mt8195_output_fmts,
973-
.num_output_fmts = ARRAY_SIZE(mt8195_output_fmts),
974-
.pixels_per_iter = 4,
975-
.input_2pixel = false,
976-
.dimension_mask = DPINTF_HPW_MASK,
977-
.hvsize_mask = DPINTF_HSIZE_MASK,
978-
.channel_swap_shift = DPINTF_CH_SWAP,
979-
.yuv422_en_bit = DPINTF_YUV422_EN,
980-
.csc_enable_bit = DPINTF_CSC_ENABLE,
981-
};
982-
983969
static const struct mtk_dpi_conf mt8192_conf = {
984970
.cal_factor = mt8183_calculate_factor,
985971
.reg_h_fre_con = 0xe0,
@@ -1103,7 +1089,7 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
11031089
{ .compatible = "mediatek,mt8173-dpi", .data = &mt8173_conf },
11041090
{ .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf },
11051091
{ .compatible = "mediatek,mt8186-dpi", .data = &mt8186_conf },
1106-
{ .compatible = "mediatek,mt8188-dp-intf", .data = &mt8188_dpintf_conf },
1092+
{ .compatible = "mediatek,mt8188-dp-intf", .data = &mt8195_dpintf_conf },
11071093
{ .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf },
11081094
{ .compatible = "mediatek,mt8195-dp-intf", .data = &mt8195_dpintf_conf },
11091095
{ /* sentinel */ },

0 commit comments

Comments
 (0)