phy/rockchip: inno-hdmi: round rk3328 recalc frac rate by 1000Hz

For pixel clock is rounded by 1000Hz, the recalcated clock rate
of fractional frame rate mode, such 59.94/29.97/23.97Hz, is need
to take the 1000Hz rounding. Otherwise it will not find the pre-pll
settings when powering up phy.

Change-Id: I0f02bbede9314d57d97c539cd995eb0f67295cfd
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2018-05-18 16:09:50 +08:00
committed by Tao Huang
parent 1df09ca4e1
commit bb9bdab32f

View File

@@ -1046,11 +1046,12 @@ inno_hdmi_rk3328_phy_pll_recalc_rate(struct inno_hdmi_phy *inno,
do_div(vco, nd * no_a * no_d * 2);
}
inno->pixclock = vco;
frac = vco;
inno->pixclock = DIV_ROUND_CLOSEST(frac, 1000) * 1000;
dev_dbg(inno->dev, "%s rate %lu\n", __func__, inno->pixclock);
return inno->pixclock;
return frac;
}
static unsigned long