fixes pci on lantiq AR9 SoC
SVN-Revision: 27695
This commit is contained in:
parent
3833b7be24
commit
78a9b1a2ad
1 changed files with 18 additions and 0 deletions
18
target/linux/lantiq/patches-2.6.39/999-fix_pci.patch
Normal file
18
target/linux/lantiq/patches-2.6.39/999-fix_pci.patch
Normal file
|
@ -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) {
|
Loading…
Reference in a new issue