summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Conley <cconley@phytec.com>2013-08-08 10:48:29 -0700
committerAnthony Felice <tony.felice@timesys.com>2013-09-17 14:22:17 -0400
commitff51dae538cda3956e1520a08ef3ca2dfb625d44 (patch)
treecdd039087709096aa3e306ef4e49ac4508017e35
parent32ccea882e25e06bfb583f27bdc7b6b37442b99d (diff)
Fixed DCU multiplier calculation
Signed-off-by: Chris Conley <cconley@phytec.com>
-rw-r--r--drivers/video/mvf_dcu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/mvf_dcu.c b/drivers/video/mvf_dcu.c
index 36344fb3a76d..1dde3046ce6e 100644
--- a/drivers/video/mvf_dcu.c
+++ b/drivers/video/mvf_dcu.c
@@ -80,7 +80,7 @@ static struct fb_videomode __devinitdata mvf_dcu_mode_db[] = {
},{
/* HDMI */
.name = "640x480p_hdmipc",
- .pixclock = 25111, /* From TDA Doc */
+ .pixclock = 25200, /* From TDA Doc */
.xres = 640,
.yres = 480,
.left_margin = 1,
@@ -477,14 +477,14 @@ static void update_lcdc(struct fb_info *info)
dcu->base + DCU_DCU_MODE);
/* PCLK output calculation */
- if ((var->pixclock == 0) || (DCU_MASTER_CLOCK_FREQ / (var->pixclock<<12) > 0x100))
+ if ((var->pixclock == 0) || ((DCU_MASTER_CLOCK_FREQ/1000) / (var->pixclock) > 0x100))
{
/* default value */
div_val = 0x10;
}
else
{
- div_val = DCU_MASTER_CLOCK_FREQ / var->pixclock;
+ div_val = (DCU_MASTER_CLOCK_FREQ /1000) / (var->pixclock);
}
writel(div_val, dcu->base + DCU_DIV_RATIO);