drm/omap: generalize dss_pll_calc_b()
dss_pll_calc_b() takes HDMI TMDS clock rate as a parameter. To make dss_pll_calc_b() usable for non-HDMI users, change the function to take clkout rate as parameter, and also change the current users of dss_pll_calc_b() to accommodate that. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
@@ -198,6 +198,9 @@ static int hdmi_power_on_full(struct omap_dss_device *dssdev)
|
||||
if (p->double_pixel)
|
||||
pc *= 2;
|
||||
|
||||
/* DSS_HDMI_TCLK is bitclk / 10 */
|
||||
pc *= 10;
|
||||
|
||||
dss_pll_calc_b(&hdmi.pll.pll, clk_get_rate(hdmi.pll.pll.clkin),
|
||||
pc, &hdmi_cinfo);
|
||||
|
||||
|
Reference in New Issue
Block a user