diff options
| author | Bartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl> | 2004-03-16 15:14:24 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-03-16 15:14:24 -0800 |
| commit | fbbefbb86f011253a2da544eb2a51959c7cf487f (patch) | |
| tree | 65ac65297011735230bdff988c096bc8bb6a4cce | |
| parent | 89410c3e34154528660c5295df56ffa3c9959a3d (diff) | |
[PATCH] hpt366.c: PLL fix needed for some HPT374
From: Boehm Olaf <olaf.boehm@lanner.de>
From: Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>
Wider range for 33MHz timing and PLL setup for HPT374
(using the HPT370A timing table, as it is the same as
used in the "opensource" driver by HighPoint).
fixes bugzilla bugs #2209 and #2271
| -rw-r--r-- | drivers/ide/pci/hpt366.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/pci/hpt366.c b/drivers/ide/pci/hpt366.c index 1e304e08a114..c6b3ebf1d9ab 100644 --- a/drivers/ide/pci/hpt366.c +++ b/drivers/ide/pci/hpt366.c @@ -821,7 +821,7 @@ static int __init init_hpt37x(struct pci_dev *dev) */ pci_read_config_word(dev, 0x78, &freq); freq &= 0x1FF; - if (freq < 0x9c) { + if (freq < 0xa0) { pll = F_LOW_PCI_33; if (hpt_minimum_revision(dev,8)) pci_set_drvdata(dev, (void *) thirty_three_base_hpt374); @@ -897,7 +897,7 @@ static int __init init_hpt37x(struct pci_dev *dev) pll & ~0x100); pci_write_config_byte(dev, 0x5b, 0x21); if (hpt_minimum_revision(dev,8)) - return -EOPNOTSUPP; + pci_set_drvdata(dev, (void *) fifty_base_hpt370a); else if (hpt_minimum_revision(dev,5)) pci_set_drvdata(dev, (void *) fifty_base_hpt372); else if (hpt_minimum_revision(dev,4)) |
