Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

video: s3cfb_tl2796: Fix fb_var_screeninfo.pixclock

This value should be in pico seconds not Hz.

Change-Id: I96e7732d0e9ea4812c9751b5972e001bbe1e3c56
Signed-off-by: Arve Hjønnevåg <arve@android.com>
  • Loading branch information...
commit e3f798bd86dbd99dda58b0e7ccafaaa7a05337e8 1 parent fed448d
Arve Hjønnevåg authored
View
3  drivers/video/samsung/s3cfb.c
@@ -763,10 +763,11 @@ static void s3cfb_init_fbinfo(struct s3cfb_global *ctrl, int id)
var->upper_margin = timing->v_fp;
var->lower_margin = timing->v_bp;
- var->pixclock = lcd->freq * (var->left_margin + var->right_margin +
+ ctrl->pixclock_hz = lcd->freq * (var->left_margin + var->right_margin +
var->hsync_len + var->xres) *
(var->upper_margin + var->lower_margin +
var->vsync_len + var->yres);
+ var->pixclock = KHZ2PICOS(ctrl->pixclock_hz / 1000);
dev_dbg(ctrl->dev, "pixclock: %d\n", var->pixclock);
View
1  drivers/video/samsung/s3cfb.h
@@ -240,6 +240,7 @@ struct s3cfb_global {
enum s3cfb_output_t output;
enum s3cfb_rgb_mode_t rgb_mode;
struct s3cfb_lcd *lcd;
+ u32 pixclock_hz;
#ifdef CONFIG_HAS_WAKELOCK
struct early_suspend early_suspend;
View
2  drivers/video/samsung/s3cfb_fimd6x.c
@@ -177,7 +177,7 @@ int s3cfb_set_clock(struct s3cfb_global *ctrl)
printk(KERN_INFO "FIMD src hclk = %d\n", src_clk);
}
- vclk = ctrl->fb[pdata->default_win]->var.pixclock;
+ vclk = ctrl->pixclock_hz;
if (vclk > maxclk) {
dev_info(ctrl->dev, "vclk(%d) should be smaller than %d\n",
Please sign in to comment.
Something went wrong with that request. Please try again.