Commit 8eeb3946 authored by Wangyan Wang's avatar Wangyan Wang Committed by CK Hu

drm/mediatek: using new factor for tvdpll for MT2701 hdmi phy

This is the second step to make MT2701 HDMI stable.
The factor depends on the divider of DPI in MT2701, therefore,
we should fix this factor to the right and new one.
Test: search ok
Signed-off-by: default avatarWangyan Wang <wangyan.wang@mediatek.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent 827abdd0
...@@ -662,13 +662,11 @@ static unsigned int mt8173_calculate_factor(int clock) ...@@ -662,13 +662,11 @@ static unsigned int mt8173_calculate_factor(int clock)
static unsigned int mt2701_calculate_factor(int clock) static unsigned int mt2701_calculate_factor(int clock)
{ {
if (clock <= 64000) if (clock <= 64000)
return 16;
else if (clock <= 128000)
return 8;
else if (clock <= 256000)
return 4; return 4;
else else if (clock <= 128000)
return 2; return 2;
else
return 1;
} }
static const struct mtk_dpi_conf mt8173_conf = { static const struct mtk_dpi_conf mt8173_conf = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment