Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48053
b: refs/heads/master
c: a524d94
h: refs/heads/master
i:
  48051: d8c7327
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Feb 12, 2007
1 parent 7597311 commit cedc388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 1b2f2fe8ac0273ae9a9b480b799ce62d832168cb
refs/heads/master: a524d946bdced73c5fbe60170fb33611491c4211
8 changes: 5 additions & 3 deletions trunk/drivers/video/tgafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ tgafb_set_par(struct fb_info *info)
while (TGA_READ_REG(par, TGA_CMD_STAT_REG) & 1) /* wait for not busy */
continue;
mb();
TGA_WRITE_REG(par, deep_presets[tga_type], TGA_DEEP_REG);
TGA_WRITE_REG(par, deep_presets[tga_type] |
(par->sync_on_green ? 0x0 : 0x00010000),
TGA_DEEP_REG);
while (TGA_READ_REG(par, TGA_CMD_STAT_REG) & 1) /* wait for not busy */
continue;
mb();
Expand Down Expand Up @@ -261,11 +263,11 @@ tgafb_set_par(struct fb_info *info)

} else { /* 24-plane or 24plusZ */

/* Init BT463 registers. */
/* Init BT463 RAMDAC registers. */
BT463_WRITE(par, BT463_REG_ACC, BT463_CMD_REG_0, 0x40);
BT463_WRITE(par, BT463_REG_ACC, BT463_CMD_REG_1, 0x08);
BT463_WRITE(par, BT463_REG_ACC, BT463_CMD_REG_2,
(par->sync_on_green ? 0x80 : 0x40));
(par->sync_on_green ? 0xc0 : 0x40));

BT463_WRITE(par, BT463_REG_ACC, BT463_READ_MASK_0, 0xff);
BT463_WRITE(par, BT463_REG_ACC, BT463_READ_MASK_1, 0xff);
Expand Down

0 comments on commit cedc388

Please sign in to comment.