diff options
Diffstat (limited to 'drivers/ide/pci/hpt34x.c')
-rw-r--r-- | drivers/ide/pci/hpt34x.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/ide/pci/hpt34x.c b/drivers/ide/pci/hpt34x.c index 2c24c3de8846..19778c5fe711 100644 --- a/drivers/ide/pci/hpt34x.c +++ b/drivers/ide/pci/hpt34x.c | |||
@@ -80,7 +80,7 @@ static int hpt34x_tune_chipset (ide_drive_t *drive, u8 xferspeed) | |||
80 | 80 | ||
81 | static void hpt34x_tune_drive (ide_drive_t *drive, u8 pio) | 81 | static void hpt34x_tune_drive (ide_drive_t *drive, u8 pio) |
82 | { | 82 | { |
83 | pio = ide_get_best_pio_mode(drive, pio, 5, NULL); | 83 | pio = ide_get_best_pio_mode(drive, pio, 5); |
84 | (void) hpt34x_tune_chipset(drive, (XFER_PIO_0 + pio)); | 84 | (void) hpt34x_tune_chipset(drive, (XFER_PIO_0 + pio)); |
85 | } | 85 | } |
86 | 86 | ||
@@ -120,17 +120,10 @@ static unsigned int __devinit init_chipset_hpt34x(struct pci_dev *dev, const cha | |||
120 | pci_write_config_byte(dev, HPT34X_PCI_INIT_REG, 0x00); | 120 | pci_write_config_byte(dev, HPT34X_PCI_INIT_REG, 0x00); |
121 | pci_read_config_word(dev, PCI_COMMAND, &cmd); | 121 | pci_read_config_word(dev, PCI_COMMAND, &cmd); |
122 | 122 | ||
123 | if (cmd & PCI_COMMAND_MEMORY) { | 123 | if (cmd & PCI_COMMAND_MEMORY) |
124 | if (pci_resource_start(dev, PCI_ROM_RESOURCE)) { | ||
125 | pci_write_config_dword(dev, PCI_ROM_ADDRESS, | ||
126 | dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE); | ||
127 | printk(KERN_INFO "HPT345: ROM enabled at 0x%08lx\n", | ||
128 | (unsigned long)dev->resource[PCI_ROM_RESOURCE].start); | ||
129 | } | ||
130 | pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0xF0); | 124 | pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0xF0); |
131 | } else { | 125 | else |
132 | pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x20); | 126 | pci_write_config_byte(dev, PCI_LATENCY_TIMER, 0x20); |
133 | } | ||
134 | 127 | ||
135 | /* | 128 | /* |
136 | * Since 20-23 can be assigned and are R/W, we correct them. | 129 | * Since 20-23 can be assigned and are R/W, we correct them. |
@@ -182,10 +175,10 @@ static ide_pci_device_t hpt34x_chipset __devinitdata = { | |||
182 | .name = "HPT34X", | 175 | .name = "HPT34X", |
183 | .init_chipset = init_chipset_hpt34x, | 176 | .init_chipset = init_chipset_hpt34x, |
184 | .init_hwif = init_hwif_hpt34x, | 177 | .init_hwif = init_hwif_hpt34x, |
185 | .channels = 2, | ||
186 | .autodma = NOAUTODMA, | 178 | .autodma = NOAUTODMA, |
187 | .bootable = NEVER_BOARD, | 179 | .bootable = NEVER_BOARD, |
188 | .extra = 16 | 180 | .extra = 16, |
181 | .pio_mask = ATA_PIO5, | ||
189 | }; | 182 | }; |
190 | 183 | ||
191 | static int __devinit hpt34x_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 184 | static int __devinit hpt34x_init_one(struct pci_dev *dev, const struct pci_device_id *id) |