diff options
author | Koen Kooi <koen@openembedded.org> | 2005-06-30 08:19:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-06-30 08:19:37 +0000 |
commit | c8e5702127e507e82e6f68a4b8c546803accea9d (patch) | |
tree | 00583491f40ecc640f2b28452af995e3a63a09d7 /packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff | |
parent | 87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff) |
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff')
-rw-r--r-- | packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff b/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff index e69de29bb2..0a3896433a 100644 --- a/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff +++ b/packages/linux/linux-mtx-1-2.4.27/15-au1000-pci-fixup-non-coherent-pre-ac.diff @@ -0,0 +1,19 @@ +--- linux/arch/mips/au1000/common/pci_fixup.c.orig 2004-11-25 20:14:24.907902616 +0100 ++++ linux/arch/mips/au1000/common/pci_fixup.c 2004-11-25 20:27:08.842766864 +0100 +@@ -75,10 +75,13 @@ + + #ifdef CONFIG_NONCOHERENT_IO + /* +- * Set the NC bit in controller for pre-AC silicon ++ * Set the NC bit in controller for Au1500 pre-AC silicon + */ +- au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG); +- printk("Non-coherent PCI accesses enabled\n"); ++ u32 prid = read_c0_prid(); ++ if ( (prid & 0xFF000000) == 0x01000000 && prid < 0x01030202) { ++ au_writel( 1<<16 | au_readl(Au1500_PCI_CFG), Au1500_PCI_CFG); ++ printk("Non-coherent PCI accesses enabled\n"); ++ } + #endif + + set_io_port_base(virt_io_addr); |