Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20340
b: refs/heads/master
c: 9f67200
h: refs/heads/master
v: v3
  • Loading branch information
Christian Trefzer authored and Linus Torvalds committed Feb 15, 2006
1 parent e7c0930 commit f69935d
Show file tree
Hide file tree
Showing 3 changed files with 14 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: 5ecfbae093f0c37311e89b29bfc0c9d586eace87
refs/heads/master: 9f672004ab1a8094bec1785b39ac683ab9eebebc
15 changes: 12 additions & 3 deletions trunk/drivers/video/neofb.c
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,9 @@ static int neofb_set_par(struct fb_info *info)

par->SysIfaceCntl2 = 0xc0; /* VESA Bios sets this to 0x80! */

/* Initialize: by default, we want display config register to be read */
par->PanelDispCntlRegRead = 1;

/* Enable any user specified display devices. */
par->PanelDispCntlReg1 = 0x00;
if (par->internal_display)
Expand Down Expand Up @@ -1334,11 +1337,17 @@ static int neofb_blank(int blank_mode, struct fb_info *info)
struct neofb_par *par = info->par;
int seqflags, lcdflags, dpmsflags, reg;


/*
* Reload the value stored in the register, might have been changed via
* FN keystroke
* Reload the value stored in the register, if sensible. It might have
* been changed via FN keystroke.
*/
par->PanelDispCntlReg1 = vga_rgfx(NULL, 0x20) & 0x03;
if (par->PanelDispCntlRegRead) {
neoUnlock();
par->PanelDispCntlReg1 = vga_rgfx(NULL, 0x20) & 0x03;
neoLock(&par->state);
}
par->PanelDispCntlRegRead = !blank_mode;

switch (blank_mode) {
case FB_BLANK_POWERDOWN: /* powerdown - both sync lines down */
Expand Down
1 change: 1 addition & 0 deletions trunk/include/video/neomagic.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ struct neofb_par {
unsigned char PanelDispCntlReg1;
unsigned char PanelDispCntlReg2;
unsigned char PanelDispCntlReg3;
unsigned char PanelDispCntlRegRead;
unsigned char PanelVertCenterReg1;
unsigned char PanelVertCenterReg2;
unsigned char PanelVertCenterReg3;
Expand Down

0 comments on commit f69935d

Please sign in to comment.