drm/mediatek: fix the rate and divder of hdmi phy for MT2701
Subsystems (2)
CK Hu
Reviewed-byQuoted 5 lines · Wangyan Wang
From: chunhui dai <[email protected]>
Due to a clerical error,there is one zero less for 12800000. Fix it for 128000000.
Quoted 12 lines
Fixes 0fc721b2968e ("drm/mediatek: add hdmi driver for MT2701 and MT7623")Signed-off-by chunhui dai <[email protected]>Signed-off-by wangyan wang <[email protected]>--- drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +0
-0
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, · line 121
Quoted 10 lines
drivers/gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c +2
-2@@ -114,8 +114,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 ;
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH V3,0/8] make mt7623 clock of HDMI stable
In reply to a message not in the archiveHi, Wangyan:
How do you prove that this series would make mt7623 HDMI clock more stable? By experience result? I would like to prove it by the source code.
Does 'stable' means that hardware could generate the frequency most close to the target frequency? If it does, I think you could compare the frequency generated by original code and applying this series for all the usually-used frequency. I also need you to show the clock tree and all setting of each divider so we could review that is this series good enough. Also, describe these in cover latter.
You have mail to dri-devel [1] and linux-mediatek [2], but these patches does not show in web site. Maybe your mail is not plain text, please fix this and resend patches.
[1] https://lists.freedesktop.org/archives/dri-devel/
[2] http://lists.infradead.org/pipermail/linux-mediatek/
Regards,
CK
Quoted 19 lines · Wangyan Wang
V3 adopt maintainer's suggestion.
Here is the change list between V2 & V3:
1. add "Signed-off-by: wangyan wang <[email protected]>" in commit message2. add modify description in patch
"drm/mediatek: fix the rate and divder ..."chunhui dai (8):
drm/mediatek: recalculate hdmi phy clock of MT2701 by querying
hardware
drm/mediatek: move the setting of fixed divider drm/mediatek: using different flags of clk for HDMI phy drm/mediatek: fix the rate and divder of hdmi phy for MT2701
clk: mediatek: addMUX_GATE_FLAGS_2
clk: mediatek: usingCLK_MUX_ROUND_CLOSESTfor the clock ofdpi1_seldrm/mediatek: using new factor for tvdpll in MT2701 drm/mediatek: fix the rate of parent for hdmi phy in MT2701
Quoted 10 lines
drivers/clk/mediatek/clk-mt2701.c | 4 +- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/clk/mediatek/clk-mtk.h | 20 +++++-- drivers/gpu/drm/mediatek/mtk_dpi.c | 8 +-- drivers/gpu/drm/mediatek/mtk_hdmi_phy.c | 34 +++-------- drivers/gpu/drm/mediatek/mtk_hdmi_phy.h | 7 +-- .../gpu/drm/mediatek/mtk_mt2701_hdmi_phy.c | 56 +++++++++++++++++-- .../gpu/drm/mediatek/mtk_mt8173_hdmi_phy.c | 23 ++++++++ 8 files changed, 102 insertions(+), 52 deletions(-)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel