Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362355
b: refs/heads/master
c: 1812a3d
h: refs/heads/master
i:
  362353: 98af15a
  362351: dc10af3
v: v3
  • Loading branch information
Christopher Harvey authored and Dave Airlie committed Apr 9, 2013
1 parent d6be690 commit 06b80dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 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: c9cdee17653409dedeb65c0733a253f6fe3fc7d6
refs/heads/master: 1812a3db0874be1d1524086da9e84397b800f546
13 changes: 3 additions & 10 deletions trunk/drivers/gpu/drm/mgag200/mgag200_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
int i;
unsigned char misc = 0;
unsigned char ext_vga[6];
unsigned char ext_vga_index24;
unsigned char dac_index90 = 0;
u8 bppshift;

static unsigned char dacvalue[] = {
Expand Down Expand Up @@ -803,7 +801,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
option2 = 0x0000b000;
break;
case G200_ER:
dac_index90 = 0;
break;
}

Expand Down Expand Up @@ -852,10 +849,8 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
WREG_DAC(i, dacvalue[i]);
}

if (mdev->type == G200_ER) {
WREG_DAC(0x90, dac_index90);
}

if (mdev->type == G200_ER)
WREG_DAC(0x90, 0);

if (option)
pci_write_config_dword(dev->pdev, PCI_MGA_OPTION, option);
Expand Down Expand Up @@ -952,8 +947,6 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
if (mdev->type == G200_WB)
ext_vga[1] |= 0x88;

ext_vga_index24 = 0x05;

/* Set pixel clocks */
misc = 0x2d;
WREG8(MGA_MISC_OUT, misc);
Expand All @@ -965,7 +958,7 @@ static int mga_crtc_mode_set(struct drm_crtc *crtc,
}

if (mdev->type == G200_ER)
WREG_ECRT(24, ext_vga_index24);
WREG_ECRT(0x24, 0x5);

if (mdev->type == G200_EV) {
WREG_ECRT(6, 0);
Expand Down

0 comments on commit 06b80dd

Please sign in to comment.