fixes pci on lantiq AR9 SoC
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Jul 2011 18:06:42 +0000 (18:06 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 19 Jul 2011 18:06:42 +0000 (18:06 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27695 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/lantiq/patches-2.6.39/999-fix_pci.patch [new file with mode: 0644]

diff --git a/target/linux/lantiq/patches-2.6.39/999-fix_pci.patch b/target/linux/lantiq/patches-2.6.39/999-fix_pci.patch
new file mode 100644 (file)
index 0000000..94a3bc7
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/arch/mips/pci/pci-lantiq.c
++++ b/arch/mips/pci/pci-lantiq.c
+@@ -171,8 +171,13 @@
+       u32 temp_buffer;
+       /* set clock to 33Mhz */
+-      ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) & ~0xf00000, LTQ_CGU_IFCCR);
+-      ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) | 0x800000, LTQ_CGU_IFCCR);
++      if (ltq_is_ar9()) {
++              ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) & ~0x1f00000, LTQ_CGU_IFCCR);
++              ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) | 0xe00000, LTQ_CGU_IFCCR);
++      } else {
++              ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) & ~0xf00000, LTQ_CGU_IFCCR);
++              ltq_cgu_w32(ltq_cgu_r32(LTQ_CGU_IFCCR) | 0x800000, LTQ_CGU_IFCCR);
++      }
+       /* external or internal clock ? */
+       if (conf->clock) {
This page took 0.034478 seconds and 4 git commands to generate.