Commit fbbefbb8 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[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
parent 89410c3e
...@@ -821,7 +821,7 @@ static int __init init_hpt37x(struct pci_dev *dev) ...@@ -821,7 +821,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
*/ */
pci_read_config_word(dev, 0x78, &freq); pci_read_config_word(dev, 0x78, &freq);
freq &= 0x1FF; freq &= 0x1FF;
if (freq < 0x9c) { if (freq < 0xa0) {
pll = F_LOW_PCI_33; pll = F_LOW_PCI_33;
if (hpt_minimum_revision(dev,8)) if (hpt_minimum_revision(dev,8))
pci_set_drvdata(dev, (void *) thirty_three_base_hpt374); pci_set_drvdata(dev, (void *) thirty_three_base_hpt374);
...@@ -897,7 +897,7 @@ static int __init init_hpt37x(struct pci_dev *dev) ...@@ -897,7 +897,7 @@ static int __init init_hpt37x(struct pci_dev *dev)
pll & ~0x100); pll & ~0x100);
pci_write_config_byte(dev, 0x5b, 0x21); pci_write_config_byte(dev, 0x5b, 0x21);
if (hpt_minimum_revision(dev,8)) if (hpt_minimum_revision(dev,8))
return -EOPNOTSUPP; pci_set_drvdata(dev, (void *) fifty_base_hpt370a);
else if (hpt_minimum_revision(dev,5)) else if (hpt_minimum_revision(dev,5))
pci_set_drvdata(dev, (void *) fifty_base_hpt372); pci_set_drvdata(dev, (void *) fifty_base_hpt372);
else if (hpt_minimum_revision(dev,4)) else if (hpt_minimum_revision(dev,4))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment