Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105506
b: refs/heads/master
c: a0d9225
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 24, 2008
1 parent 66dcf37 commit 939d906
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 0e73a47f094a919e2edeaa88e840cd0400adc423
refs/heads/master: a0d922562d56073f147a4de2983bee499dd2a10e
10 changes: 7 additions & 3 deletions trunk/drivers/video/tridentfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,15 @@ MODULE_PARM_DESC(crt, "Define if CRT is connected");

static int is_oldclock(int id)
{
return (id == TGUI9660) ||
return (id == TGUI9440) ||
(id == TGUI9660) ||
(id == CYBER9320);
}

static int is_oldprotect(int id)
{
return (id == TGUI9660) ||
return (id == TGUI9440) ||
(id == TGUI9660) ||
(id == PROVIDIA9685) ||
(id == CYBER9320) ||
(id == CYBER9382) ||
Expand Down Expand Up @@ -1042,7 +1044,8 @@ static int tridentfb_set_par(struct fb_info *info)
if (!is_xp(par->chip_id))
write3X4(par, Performance, read3X4(par, Performance) | 0x10);
/* MMIO & PCI read and write burst enable */
write3X4(par, PCIReg, read3X4(par, PCIReg) | 0x06);
if (par->chip_id != TGUI9440)
write3X4(par, PCIReg, read3X4(par, PCIReg) | 0x06);

/* convert from picoseconds to kHz */
vclk = PICOS2KHZ(info->var.pixclock);
Expand Down Expand Up @@ -1418,6 +1421,7 @@ static struct pci_device_id trident_devices[] = {
{PCI_VENDOR_ID_TRIDENT, CYBERBLADEAi1, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, CYBERBLADEAi1D, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, CYBERBLADEE4, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, TGUI9440, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, TGUI9660, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, IMAGE975, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
{PCI_VENDOR_ID_TRIDENT, IMAGE985, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
Expand Down
1 change: 1 addition & 0 deletions trunk/include/video/trident.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#define CYBER9397DVD 0x939A
#define CYBER9520 0x9520
#define CYBER9525DVD 0x9525
#define TGUI9440 0x9440
#define TGUI9660 0x9660
#define PROVIDIA9685 0x9685
#define IMAGE975 0x9750
Expand Down

0 comments on commit 939d906

Please sign in to comment.