summaryrefslogtreecommitdiff
path: root/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
diff options
context:
space:
mode:
authorchunhui dai <chunhui.dai@mediatek.com>2020-09-04 13:59:59 +0300
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2020-09-14 18:05:23 +0300
commit09e872d558ba6a7f4468c4e8cdf0cd5a99bfc175 (patch)
tree96d4d452ac81f19fcf51d75095b9ace05786f917 /drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
parentf89c696e7f635487481eee0d196ab49730ce8664 (diff)
downloadlinux-09e872d558ba6a7f4468c4e8cdf0cd5a99bfc175.tar.xz
drm/mediatek: Disable tmds on mt2701
Without that patch if you use specific resolutions like 1280x1024, I can see distortion in the output. It seems as if the frequency for updating the pixel of the image is out of sync. For initialization tmds needs to be active, but can be disabled after init to fix blurry display Signed-off-by: chunhui dai <chunhui.dai@mediatek.com> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Tested-by: Frank Wunderlich <frank-w@public-files.de> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c')
-rw-r--r--drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c b/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
index a6cb1dea3d0c..b74c65a1762c 100644
--- a/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
+++ b/drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
@@ -238,6 +238,7 @@ static void mtk_hdmi_phy_disable_tmds(struct mtk_hdmi_phy *hdmi_phy)
struct mtk_hdmi_phy_conf mtk_hdmi_phy_2701_conf = {
.flags = CLK_SET_RATE_GATE,
+ .pll_default_off = true,
.hdmi_phy_clk_ops = &mtk_hdmi_phy_pll_ops,
.hdmi_phy_enable_tmds = mtk_hdmi_phy_enable_tmds,
.hdmi_phy_disable_tmds = mtk_hdmi_phy_disable_tmds,