Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271415
b: refs/heads/master
c: b44e458
h: refs/heads/master
i:
  271413: 6e0aae2
  271411: f0a9edf
  271407: e9b411d
v: v3
  • Loading branch information
Tomi Valkeinen committed Sep 30, 2011
1 parent 9cf3147 commit 327a30a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d88767a4377171752c22ac39bcb2b505eb751da
refs/heads/master: b44e45825dbe30f32c770b98c38555b6bd331760
6 changes: 3 additions & 3 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#define OMAP_HDMI_TIMINGS_NB 34

#define HDMI_DEFAULT_REGN 15
#define HDMI_DEFAULT_REGN 16
#define HDMI_DEFAULT_REGM2 1

static struct {
Expand Down Expand Up @@ -426,7 +426,7 @@ static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,
else
pi->regn = dssdev->clocks.hdmi.regn;

refclk = clkin / (pi->regn + 1);
refclk = clkin / pi->regn;

/*
* multiplier is pixel_clk/ref_clk
Expand All @@ -452,7 +452,7 @@ static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,
* is greater than 1000MHz
*/
pi->dcofreq = phy > 1000 * 100;
pi->regsd = ((pi->regm * clkin / 10) / ((pi->regn + 1) * 250) + 5) / 10;
pi->regsd = ((pi->regm * clkin / 10) / (pi->regn * 250) + 5) / 10;

/* Set the reference clock to sysclk reference */
pi->refsel = HDMI_REFSEL_SYSCLK;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/video/omap2/dss/ti_hdmi_4xxx_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static int hdmi_pll_init(struct hdmi_ip_data *ip_data)

r = hdmi_read_reg(pll_base, PLLCTRL_CFG1);
r = FLD_MOD(r, fmt->regm, 20, 9); /* CFG1_PLL_REGM */
r = FLD_MOD(r, fmt->regn, 8, 1); /* CFG1_PLL_REGN */
r = FLD_MOD(r, fmt->regn - 1, 8, 1); /* CFG1_PLL_REGN */

hdmi_write_reg(pll_base, PLLCTRL_CFG1, r);

Expand Down
1 change: 1 addition & 0 deletions trunk/include/video/omapdss.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ struct omap_dss_device {
} dsi;

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

0 comments on commit 327a30a

Please sign in to comment.