Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Wangyan Wang <wangyan.wang@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>

authored by

Wangyan Wang and committed by
CK Hu
8eeb3946 827abdd0

+3 -5
+3 -5
drivers/gpu/drm/mediatek/mtk_dpi.c
··· 662 662 static unsigned int mt2701_calculate_factor(int clock) 663 663 { 664 664 if (clock <= 64000) 665 - return 16; 666 - else if (clock <= 128000) 667 - return 8; 668 - else if (clock <= 256000) 669 665 return 4; 670 - else 666 + else if (clock <= 128000) 671 667 return 2; 668 + else 669 + return 1; 672 670 } 673 671 674 672 static const struct mtk_dpi_conf mt8173_conf = {