]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / linux-mtx-1-2.4.27 / 15-au1000-pci-fixup-non-coherent-pre-ac.diff
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
3 @@ -75,10 +75,13 @@
4  
5  #ifdef CONFIG_NONCOHERENT_IO
6         /* 
7 -        *  Set the NC bit in controller for pre-AC silicon
8 +        *  Set the NC bit in controller for Au1500 pre-AC silicon
9          */
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");
16 +       }
17  #endif
18  
19         set_io_port_base(virt_io_addr);