mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
media: hdmitx: Update hdmi hpll generation for low pixel clock
Change-Id: I83bd8688379f7e70354013c5f1a02c6995beed31
This commit is contained in:
@@ -1110,8 +1110,8 @@ next:
|
||||
p_enc[j].hpll_clk_out = (custom_timing->frac_freq * 10);
|
||||
pr_info("[N2][%s] vic == HDMI_CUSTOMBUILT, frac_freq %d\n",
|
||||
__func__, custom_timing->frac_freq);
|
||||
/* check if hpll clk output is under (100*10)MHz */
|
||||
if (p_enc[j].hpll_clk_out < 1000000) {
|
||||
/* check if hpll clk output is under (140*10)MHz */
|
||||
if (p_enc[j].hpll_clk_out < 1400000) {
|
||||
p_enc[j].hpll_clk_out *= 4;
|
||||
/* control od dividers */
|
||||
p_enc[j].od1 = 4;
|
||||
|
||||
@@ -331,7 +331,7 @@ void set_g12a_hpll_clk_out(unsigned int frac_rate, unsigned int clk)
|
||||
/* calculate "m" */
|
||||
m1 = (clk * 0x3A) / 1422000;
|
||||
m2 = (clk * 0xE1) / 5405400;
|
||||
m = (m1 + m2)/2;
|
||||
m = ((m1 + m2) / 2) + 1;
|
||||
m &= 0xff;
|
||||
m |= 0x3b000400;
|
||||
hd_write_reg(P_HHI_HDMI_PLL_CNTL0, m);
|
||||
|
||||
Reference in New Issue
Block a user