From: Hang Cheng Date: Fri, 26 Jul 2019 09:29:14 +0000 (+0800) Subject: hdmitx: modify fractional part of hpll for gxtvbb [1/1] X-Git-Tag: hardkernel-4.9.236-104~871 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc7872eb97fb397260dd6f38e2484a8e33120e6a;p=platform%2Fkernel%2Flinux-amlogic.git hdmitx: modify fractional part of hpll for gxtvbb [1/1] PD#TV-8224 Problem: hdmitx output clk is not right, actually output 145Mhz when expect to output 148.5Mhz. for gxtvbb, bit[11] of DIV_FRAC bit[11:0] is used for +/- symbol, but now is used for fractional weight by mistake. Solution: change back to original setting for DIV_FRAC Verify: TCL-T966 Change-Id: Idd34a745d4b74a0bd9e6f2b3542af94731d5badd 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 db49ca8..90f2e3a 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 @@ -400,7 +400,7 @@ static void set_gxtvbb_hpll_clk_out(unsigned int frac_rate, unsigned int clk) hd_set_reg_bits(P_HHI_HDMI_PLL_CNTL, 0x4, 28, 3); WAIT_FOR_PLL_LOCKED(P_HHI_HDMI_PLL_CNTL); pr_info("HPLL: 0x%x\n", hd_read_reg(P_HHI_HDMI_PLL_CNTL)); - hd_set_reg_bits(P_HHI_HDMI_PLL_CNTL2, 0x4e00, 0, 16); + /* hd_set_reg_bits(P_HHI_HDMI_PLL_CNTL2, 0x4e00, 0, 16); */ break; case 4324320: hd_write_reg(P_HHI_HDMI_PLL_CNTL, 0x5800025a);