summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
diff options
context:
space:
mode:
authorWangyan Wang <wangyan.wang@mediatek.com>2019-04-09 14:53:07 +0800
committerCK Hu <ck.hu@mediatek.com>2019-04-09 17:47:01 +0800
commit9ee76098a1b8ae21cccac641b735ee4d3a77bccf (patch)
tree083e3312f604a323692227932ab48bb6f985404d /drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
parent8eeb3946feeb00486ac0909e2309da87db8988a5 (diff)
drm/mediatek: no change parent rate in round_rate() for MT2701 hdmi phy
This is the third step to make MT2701 HDMI stable. We should not change the rate of parent for hdmi phy when doing round_rate for this clock. The parent clock of hdmi phy must be the same as it. We change it when doing set_rate only. Signed-off-by: Wangyan Wang <wangyan.wang@mediatek.com> Signed-off-by: CK Hu <ck.hu@mediatek.com>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c b/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
index 31f3175f032b..d3cc4022e988 100644
--- a/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
+++ b/drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c
@@ -106,6 +106,12 @@ static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)
usleep_range(80, 100);
}
+static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
+ unsigned long *parent_rate)
+{
+ return rate;
+}
+
static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
unsigned long parent_rate)
{