Skip to content

Commit

Permalink
drm/mediatek: hdmi: Add MT8167 configuration
Browse files Browse the repository at this point in the history
The MT8167 SoC have a hard limit on the maximal supported
HDMI TMDS clock, and is not validated and supported for
HDMI modes out of HDMI CEA modes, so add a configuration entry
linked to the MT8167 compatible.

Signed-off-by: Fabien Parent <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Signed-off-by: Chun-Kuang Hu <[email protected]>
  • Loading branch information
superna9999 authored and Chun-Kuang Hu committed May 12, 2021
1 parent c91026a commit 511cf7d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/gpu/drm/mediatek/mtk_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1787,10 +1787,18 @@ static const struct mtk_hdmi_conf mtk_hdmi_conf_mt2701 = {
.tz_disabled = true,
};

static const struct mtk_hdmi_conf mtk_hdmi_conf_mt8167 = {
.max_mode_clock = 148500,
.cea_modes_only = true,
};

static const struct of_device_id mtk_drm_hdmi_of_ids[] = {
{ .compatible = "mediatek,mt2701-hdmi",
.data = &mtk_hdmi_conf_mt2701,
},
{ .compatible = "mediatek,mt8167-hdmi",
.data = &mtk_hdmi_conf_mt8167,
},
{ .compatible = "mediatek,mt8173-hdmi",
},
{}
Expand Down

0 comments on commit 511cf7d

Please sign in to comment.