Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63844
b: refs/heads/master
c: 306c869
h: refs/heads/master
v: v3
  • Loading branch information
Adrian McMenamin authored and Linus Torvalds committed Aug 11, 2007
1 parent 415b591 commit 9215ccc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9cd1c67434544b1d9a4fb4a4cdec15608167a233
refs/heads/master: 306c869c237a66fe85580f60558f105e3305d465
4 changes: 4 additions & 0 deletions trunk/drivers/video/pvr2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
#define DISP_DIWCONF (DISP_BASE + 0xe8)
#define DISP_DIWHSTRT (DISP_BASE + 0xec)
#define DISP_DIWVSTRT (DISP_BASE + 0xf0)
#define DISP_PIXDEPTH (DISP_BASE + 0x108)

/* Pixel clocks, one for TV output, doubled for VGA output */
#define TV_CLK 74239
Expand Down Expand Up @@ -600,6 +601,7 @@ static void pvr2_init_display(struct fb_info *info)

/* bits per pixel */
fb_writel(fb_readl(DISP_DIWMODE) | (--bytesperpixel << 2), DISP_DIWMODE);
fb_writel(bytesperpixel << 2, DISP_PIXDEPTH);

/* video enable, color sync, interlace,
* hsync and vsync polarity (currently unused) */
Expand Down Expand Up @@ -808,6 +810,8 @@ static int __devinit pvr2fb_common_init(void)

if (register_framebuffer(fb_info) < 0)
goto out_err;
/*Must write PIXDEPTH to register before anything is displayed - so force init */
pvr2_init_display(fb_info);

modememused = get_line_length(fb_info->var.xres_virtual,
fb_info->var.bits_per_pixel);
Expand Down

0 comments on commit 9215ccc

Please sign in to comment.