]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/mediatek: fix the rate and divder of hdmi phy for MT2701
authorWangyan Wang <wangyan.wang@mediatek.com>
Tue, 9 Apr 2019 06:53:04 +0000 (14:53 +0800)
committerCK Hu <ck.hu@mediatek.com>
Tue, 9 Apr 2019 09:15:40 +0000 (17:15 +0800)
Due to a clerical error,there is one zero less for 12800000.
Fix it for 128000000
Fixes: 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623")
Signed-off-by: Wangyan Wang <wangyan.wang@mediatek.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c

index fcc42dc6ea7fb81d1005239a52f81bc020b2f57a..0746fc8877069e325ee5ab7d39208462d4cd25aa 100644 (file)
@@ -116,8 +116,8 @@ static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
 
        if (rate <= 64000000)
                pos_div = 3;
-       else if (rate <= 12800000)
-               pos_div = 1;
+       else if (rate <= 128000000)
+               pos_div = 2;
        else
                pos_div = 1;