[POWERPC] maple: Kill fixup_maple_ide
This function has been a no-op for about 18 months; it's there in the history should anyone need to resurrect it. Signed-off-by: Nathan Lynch <ntl@pobox.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
parent
53378c2845
commit
1cd8f348be
|
@ -592,50 +592,3 @@ int maple_pci_get_legacy_ide_irq(struct pci_dev *pdev, int channel)
|
|||
}
|
||||
return irq;
|
||||
}
|
||||
|
||||
/* XXX: To remove once all firmwares are ok */
|
||||
static void fixup_maple_ide(struct pci_dev* dev)
|
||||
{
|
||||
if (!machine_is(maple))
|
||||
return;
|
||||
|
||||
#if 0 /* Enable this to enable IDE port 0 */
|
||||
{
|
||||
u8 v;
|
||||
|
||||
pci_read_config_byte(dev, 0x40, &v);
|
||||
v |= 2;
|
||||
pci_write_config_byte(dev, 0x40, v);
|
||||
}
|
||||
#endif
|
||||
#if 0 /* fix bus master base */
|
||||
pci_write_config_dword(dev, 0x20, 0xcc01);
|
||||
printk("old ide resource: %lx -> %lx \n",
|
||||
dev->resource[4].start, dev->resource[4].end);
|
||||
dev->resource[4].start = 0xcc00;
|
||||
dev->resource[4].end = 0xcc10;
|
||||
#endif
|
||||
#if 0 /* Enable this to fixup IDE sense/polarity of irqs in IO-APICs */
|
||||
{
|
||||
struct pci_dev *apicdev;
|
||||
u32 v;
|
||||
|
||||
apicdev = pci_get_slot (dev->bus, PCI_DEVFN(5,0));
|
||||
if (apicdev == NULL)
|
||||
printk("IDE Fixup IRQ: Can't find IO-APIC !\n");
|
||||
else {
|
||||
pci_write_config_byte(apicdev, 0xf2, 0x10 + 2*14);
|
||||
pci_read_config_dword(apicdev, 0xf4, &v);
|
||||
v &= ~0x00000022;
|
||||
pci_write_config_dword(apicdev, 0xf4, v);
|
||||
pci_write_config_byte(apicdev, 0xf2, 0x10 + 2*15);
|
||||
pci_read_config_dword(apicdev, 0xf4, &v);
|
||||
v &= ~0x00000022;
|
||||
pci_write_config_dword(apicdev, 0xf4, v);
|
||||
pci_dev_put(apicdev);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_IDE,
|
||||
fixup_maple_ide);
|
||||
|
|
Loading…
Reference in New Issue