From: Hang Cheng Date: Sat, 29 Jun 2019 12:37:52 +0000 (+0800) Subject: hdmitx: correct vid pll div shift preset length [1/3] X-Git-Tag: khadas-vims-v0.9.6-release~294 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ad6f5ff769414a01603f7dcef6a967c8580c372;p=platform%2Fkernel%2Flinux-amlogic.git hdmitx: correct vid pll div shift preset length [1/3] PD#SWPL-9589 Problem: shift preset length of vid pll div is wrong Solution: modify shift preset length of vid pll div Verify: gxl-p281 Change-Id: Iac897db9d9a36e26df40e8c1ed303e02bddeb92f Signed-off-by: Hang Cheng --- diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c index 1decb1e..f56e3cd 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/hw_clk.c @@ -688,11 +688,11 @@ static void set_hpll_od3_clk_div(int div_sel) hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 18, 1); hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 16, 2); hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 15, 1); - hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 0, 14); + hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 0, 15); hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, shift_sel, 16, 2); hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 1, 15, 1); - hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, shift_val, 0, 14); + hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, shift_val, 0, 15); hd_set_reg_bits(P_HHI_VID_PLL_CLK_DIV, 0, 15, 1); } /* Enable the final output clock */