Skip to content

Commit

Permalink
OMAPDSS: HDMI: remove HDMI clk divisors from dssdev
Browse files Browse the repository at this point in the history
struct omap_dss_device contains HDMI clock divisors. The idea is that the
board file can pass precalculated divisors to the display driver.
However, these divsors are no longer needed, as the omapdss driver can
calculate the divisors during runtime.

This patch removes the divisors from omap_dss_device, and their uses
from the hdmi driver.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Archit Taneja <archit@ti.com>
  • Loading branch information
Tomi Valkeinen committed Apr 3, 2013
1 parent a0d269e commit 4fdfdf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
11 changes: 3 additions & 8 deletions drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,17 +472,12 @@ static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,
* Input clock is predivided by N + 1
* out put of which is reference clk
*/
if (dssdev->clocks.hdmi.regn == 0)
pi->regn = HDMI_DEFAULT_REGN;
else
pi->regn = dssdev->clocks.hdmi.regn;

pi->regn = HDMI_DEFAULT_REGN;

refclk = clkin / pi->regn;

if (dssdev->clocks.hdmi.regm2 == 0)
pi->regm2 = HDMI_DEFAULT_REGM2;
else
pi->regm2 = dssdev->clocks.hdmi.regm2;
pi->regm2 = HDMI_DEFAULT_REGM2;

/*
* multiplier is pixel_clk/ref_clk
Expand Down
8 changes: 0 additions & 8 deletions include/video/omapdss.h
Original file line number Diff line number Diff line change
Expand Up @@ -590,14 +590,6 @@ struct omap_dss_device {
} venc;
} phy;

struct {
struct {
/* regn is one greater than TRM's REGN value */
u16 regn;
u16 regm2;
} hdmi;
} clocks;

struct {
struct omap_video_timings timings;

Expand Down

0 comments on commit 4fdfdf0

Please sign in to comment.