Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91437
b: refs/heads/master
c: 1cd8f34
h: refs/heads/master
i:
  91435: 9de4ebe
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Mar 25, 2008
1 parent 38a3308 commit a0498b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 48 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 53378c2845d93b09056bc7b4233a366798ae2450
refs/heads/master: 1cd8f348beedf335ef0f1dc8073c05dfe9227d81
47 changes: 0 additions & 47 deletions trunk/arch/powerpc/platforms/maple/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit a0498b3

Please sign in to comment.