1 --- linux/arch/mips/au1000/common/pci_fixup.c.orig 2004-11-25 20:14:24.907902616 +0100
2 +++ linux/arch/mips/au1000/common/pci_fixup.c 2004-11-25 20:27:08.842766864 +0100
5 #ifdef CONFIG_NONCOHERENT_IO
7 - * Set the NC bit in controller for pre-AC silicon
8 + * Set the NC bit in controller for Au1500 pre-AC silicon
10 - au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
11 - printk("Non-coherent PCI accesses enabled\n");
12 + u32 prid = read_c0_prid();
13 + if ( (prid & 0xFF000000) == 0x01000000 && prid < 0x01030202) {
14 + au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG);
15 + printk("Non-coherent PCI accesses enabled\n");
19 set_io_port_base(virt_io_addr);