Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87098
b: refs/heads/master
c: 6234721
h: refs/heads/master
v: v3
  • Loading branch information
Helge Deller authored and Linus Torvalds committed Mar 11, 2008
1 parent 879d3e0 commit f88dfed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 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: 1039edc98a80aece735b0c6d8b4e5f9dcec2cc32
refs/heads/master: 62347218243179a6ab03fe9f965a5819c4714bf8
22 changes: 15 additions & 7 deletions trunk/drivers/video/stifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,16 +505,24 @@ ngleSetupAttrPlanes(struct stifb_info *fb, int BufferNumber)
static void
rattlerSetupPlanes(struct stifb_info *fb)
{
int saved_id, y;

/* Write RAMDAC pixel read mask register so all overlay
* planes are display-enabled. (CRX24 uses Bt462 pixel
* read mask register for overlay planes, not image planes).
*/
CRX24_SETUP_RAMDAC(fb);

/* replacement for: SETUP_FB(fb, CRX24_OVERLAY_PLANES); */
WRITE_WORD(0x83000300, fb, REG_14);
SETUP_HW(fb);
WRITE_BYTE(1, fb, REG_16b1);
/* change fb->id temporarily to fool SETUP_FB() */
saved_id = fb->id;
fb->id = CRX24_OVERLAY_PLANES;
SETUP_FB(fb);
fb->id = saved_id;

for (y = 0; y < fb->info.var.yres; ++y)
memset(fb->info.screen_base + y * fb->info.fix.line_length,
0xff, fb->info.var.xres * fb->info.var.bits_per_pixel/8);

fb_memset((void*)fb->info.fix.smem_start, 0xff,
fb->info.var.yres*fb->info.fix.line_length);

CRX24_SET_OVLY_MASK(fb);
SETUP_FB(fb);
}
Expand Down

0 comments on commit f88dfed

Please sign in to comment.