diff options
Diffstat (limited to 'drivers/ide/pci/pdc202xx_new.c')
-rw-r--r-- | drivers/ide/pci/pdc202xx_new.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/drivers/ide/pci/pdc202xx_new.c b/drivers/ide/pci/pdc202xx_new.c index ee5020df005d..8a66a2871b3a 100644 --- a/drivers/ide/pci/pdc202xx_new.c +++ b/drivers/ide/pci/pdc202xx_new.c | |||
@@ -219,7 +219,7 @@ static int pdcnew_tune_chipset(ide_drive_t *drive, u8 speed) | |||
219 | 219 | ||
220 | static void pdcnew_tune_drive(ide_drive_t *drive, u8 pio) | 220 | static void pdcnew_tune_drive(ide_drive_t *drive, u8 pio) |
221 | { | 221 | { |
222 | pio = ide_get_best_pio_mode(drive, pio, 4, NULL); | 222 | pio = ide_get_best_pio_mode(drive, pio, 4); |
223 | (void)pdcnew_tune_chipset(drive, XFER_PIO_0 + pio); | 223 | (void)pdcnew_tune_chipset(drive, XFER_PIO_0 + pio); |
224 | } | 224 | } |
225 | 225 | ||
@@ -378,13 +378,6 @@ static unsigned int __devinit init_chipset_pdcnew(struct pci_dev *dev, const cha | |||
378 | int f, r; | 378 | int f, r; |
379 | u8 pll_ctl0, pll_ctl1; | 379 | u8 pll_ctl0, pll_ctl1; |
380 | 380 | ||
381 | if (dev->resource[PCI_ROM_RESOURCE].start) { | ||
382 | pci_write_config_dword(dev, PCI_ROM_ADDRESS, | ||
383 | dev->resource[PCI_ROM_RESOURCE].start | PCI_ROM_ADDRESS_ENABLE); | ||
384 | printk(KERN_INFO "%s: ROM enabled at 0x%08lx\n", name, | ||
385 | (unsigned long)dev->resource[PCI_ROM_RESOURCE].start); | ||
386 | } | ||
387 | |||
388 | #ifdef CONFIG_PPC_PMAC | 381 | #ifdef CONFIG_PPC_PMAC |
389 | apple_kiwi_init(dev); | 382 | apple_kiwi_init(dev); |
390 | #endif | 383 | #endif |
@@ -573,63 +566,63 @@ static ide_pci_device_t pdcnew_chipsets[] __devinitdata = { | |||
573 | .init_setup = init_setup_pdcnew, | 566 | .init_setup = init_setup_pdcnew, |
574 | .init_chipset = init_chipset_pdcnew, | 567 | .init_chipset = init_chipset_pdcnew, |
575 | .init_hwif = init_hwif_pdc202new, | 568 | .init_hwif = init_hwif_pdc202new, |
576 | .channels = 2, | ||
577 | .autodma = AUTODMA, | 569 | .autodma = AUTODMA, |
578 | .bootable = OFF_BOARD, | 570 | .bootable = OFF_BOARD, |
571 | .pio_mask = ATA_PIO4, | ||
579 | .udma_mask = 0x3f, /* udma0-5 */ | 572 | .udma_mask = 0x3f, /* udma0-5 */ |
580 | },{ /* 1 */ | 573 | },{ /* 1 */ |
581 | .name = "PDC20269", | 574 | .name = "PDC20269", |
582 | .init_setup = init_setup_pdcnew, | 575 | .init_setup = init_setup_pdcnew, |
583 | .init_chipset = init_chipset_pdcnew, | 576 | .init_chipset = init_chipset_pdcnew, |
584 | .init_hwif = init_hwif_pdc202new, | 577 | .init_hwif = init_hwif_pdc202new, |
585 | .channels = 2, | ||
586 | .autodma = AUTODMA, | 578 | .autodma = AUTODMA, |
587 | .bootable = OFF_BOARD, | 579 | .bootable = OFF_BOARD, |
580 | .pio_mask = ATA_PIO4, | ||
588 | .udma_mask = 0x7f, /* udma0-6*/ | 581 | .udma_mask = 0x7f, /* udma0-6*/ |
589 | },{ /* 2 */ | 582 | },{ /* 2 */ |
590 | .name = "PDC20270", | 583 | .name = "PDC20270", |
591 | .init_setup = init_setup_pdc20270, | 584 | .init_setup = init_setup_pdc20270, |
592 | .init_chipset = init_chipset_pdcnew, | 585 | .init_chipset = init_chipset_pdcnew, |
593 | .init_hwif = init_hwif_pdc202new, | 586 | .init_hwif = init_hwif_pdc202new, |
594 | .channels = 2, | ||
595 | .autodma = AUTODMA, | 587 | .autodma = AUTODMA, |
596 | .bootable = OFF_BOARD, | 588 | .bootable = OFF_BOARD, |
589 | .pio_mask = ATA_PIO4, | ||
597 | .udma_mask = 0x3f, /* udma0-5 */ | 590 | .udma_mask = 0x3f, /* udma0-5 */ |
598 | },{ /* 3 */ | 591 | },{ /* 3 */ |
599 | .name = "PDC20271", | 592 | .name = "PDC20271", |
600 | .init_setup = init_setup_pdcnew, | 593 | .init_setup = init_setup_pdcnew, |
601 | .init_chipset = init_chipset_pdcnew, | 594 | .init_chipset = init_chipset_pdcnew, |
602 | .init_hwif = init_hwif_pdc202new, | 595 | .init_hwif = init_hwif_pdc202new, |
603 | .channels = 2, | ||
604 | .autodma = AUTODMA, | 596 | .autodma = AUTODMA, |
605 | .bootable = OFF_BOARD, | 597 | .bootable = OFF_BOARD, |
598 | .pio_mask = ATA_PIO4, | ||
606 | .udma_mask = 0x7f, /* udma0-6*/ | 599 | .udma_mask = 0x7f, /* udma0-6*/ |
607 | },{ /* 4 */ | 600 | },{ /* 4 */ |
608 | .name = "PDC20275", | 601 | .name = "PDC20275", |
609 | .init_setup = init_setup_pdcnew, | 602 | .init_setup = init_setup_pdcnew, |
610 | .init_chipset = init_chipset_pdcnew, | 603 | .init_chipset = init_chipset_pdcnew, |
611 | .init_hwif = init_hwif_pdc202new, | 604 | .init_hwif = init_hwif_pdc202new, |
612 | .channels = 2, | ||
613 | .autodma = AUTODMA, | 605 | .autodma = AUTODMA, |
614 | .bootable = OFF_BOARD, | 606 | .bootable = OFF_BOARD, |
607 | .pio_mask = ATA_PIO4, | ||
615 | .udma_mask = 0x7f, /* udma0-6*/ | 608 | .udma_mask = 0x7f, /* udma0-6*/ |
616 | },{ /* 5 */ | 609 | },{ /* 5 */ |
617 | .name = "PDC20276", | 610 | .name = "PDC20276", |
618 | .init_setup = init_setup_pdc20276, | 611 | .init_setup = init_setup_pdc20276, |
619 | .init_chipset = init_chipset_pdcnew, | 612 | .init_chipset = init_chipset_pdcnew, |
620 | .init_hwif = init_hwif_pdc202new, | 613 | .init_hwif = init_hwif_pdc202new, |
621 | .channels = 2, | ||
622 | .autodma = AUTODMA, | 614 | .autodma = AUTODMA, |
623 | .bootable = OFF_BOARD, | 615 | .bootable = OFF_BOARD, |
616 | .pio_mask = ATA_PIO4, | ||
624 | .udma_mask = 0x7f, /* udma0-6*/ | 617 | .udma_mask = 0x7f, /* udma0-6*/ |
625 | },{ /* 6 */ | 618 | },{ /* 6 */ |
626 | .name = "PDC20277", | 619 | .name = "PDC20277", |
627 | .init_setup = init_setup_pdcnew, | 620 | .init_setup = init_setup_pdcnew, |
628 | .init_chipset = init_chipset_pdcnew, | 621 | .init_chipset = init_chipset_pdcnew, |
629 | .init_hwif = init_hwif_pdc202new, | 622 | .init_hwif = init_hwif_pdc202new, |
630 | .channels = 2, | ||
631 | .autodma = AUTODMA, | 623 | .autodma = AUTODMA, |
632 | .bootable = OFF_BOARD, | 624 | .bootable = OFF_BOARD, |
625 | .pio_mask = ATA_PIO4, | ||
633 | .udma_mask = 0x7f, /* udma0-6*/ | 626 | .udma_mask = 0x7f, /* udma0-6*/ |
634 | } | 627 | } |
635 | }; | 628 | }; |