mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user