summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-23 14:12:42 +0000
committeracoul <acoul@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-23 14:12:42 +0000
commita7565ddade717d0d2b26d03e2d0091d7b204856b (patch)
tree4f2b8d82d0f4238b57a9b97ef155c8dec43f87d0
parent723857f8a70a7b14b3dc6ccec24cfa822dd1da43 (diff)
linux/brcm47xx: add missing patch on r24112
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24113 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch55
1 files changed, 34 insertions, 21 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch b/target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch
index 3b6c79704..08f5f853e 100644
--- a/target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch
+++ b/target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch
@@ -1,34 +1,47 @@
+--- a/arch/mips/include/asm/cpu.h
++++ b/arch/mips/include/asm/cpu.h
+@@ -111,7 +111,7 @@
+ * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM
+ */
+
+-#define PRID_IMP_BMIPS4KC 0x4000
++#define PRID_IMP_BCM4710 0x4000
+ #define PRID_IMP_BMIPS32 0x8000
+ #define PRID_IMP_BMIPS3300 0x9000
+ #define PRID_IMP_BMIPS3300_ALT 0x9100
+@@ -226,8 +226,8 @@ enum cpu_type_enum {
+ * MIPS32 class processors
+ */
+ CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_1004K, CPU_74K,
+- CPU_ALCHEMY, CPU_PR4450, CPU_BMIPS32, CPU_BMIPS3300, CPU_BMIPS4350,
+- CPU_BMIPS4380, CPU_BMIPS5000, CPU_JZRISC,
++ CPU_ALCHEMY, CPU_PR4450, CPU_BCM4710, CPU_BMIPS32, CPU_BMIPS3300,
++ CPU_BMIPS4350, CPU_BMIPS4380, CPU_BMIPS5000, CPU_JZRISC,
+
+ /*
+ * MIPS64 class processors
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
-@@ -934,8 +934,8 @@ static inline void cpu_probe_broadcom(st
+@@ -933,9 +933,9 @@ static inline void cpu_probe_broadcom(st
+ __cpu_name[cpu] = "Broadcom BMIPS5000";
c->options |= MIPS_CPU_ULRI;
break;
- case PRID_IMP_BMIPS4KC:
+- case PRID_IMP_BMIPS4KC:
- c->cputype = CPU_4KC;
- __cpu_name[cpu] = "MIPS 4Kc";
-+ c->cputype = CPU_BMIPS4KC;
-+ __cpu_name[cpu] = "Broadcom BMIPS4Kc";
++ case PRID_IMP_BCM4710:
++ c->cputype = CPU_BCM4710;
++ __cpu_name[cpu] = "Broadcom BCM4710";
break;
}
}
---- a/arch/mips/include/asm/cpu.h
-+++ b/arch/mips/include/asm/cpu.h
-@@ -227,7 +227,7 @@ enum cpu_type_enum {
- */
- CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_1004K, CPU_74K,
- CPU_ALCHEMY, CPU_PR4450, CPU_BMIPS32, CPU_BMIPS3300, CPU_BMIPS4350,
-- CPU_BMIPS4380, CPU_BMIPS5000, CPU_JZRISC,
-+ CPU_BMIPS4380, CPU_BMIPS4KC, CPU_BMIPS5000, CPU_JZRISC,
-
- /*
- * MIPS64 class processors
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
-@@ -342,6 +342,7 @@ static void __cpuinit build_tlb_write_en
+@@ -338,6 +338,7 @@ static void __cpuinit build_tlb_write_en
+ case CPU_4KSC:
+ case CPU_20KC:
+ case CPU_25KF:
++ case CPU_BCM4710:
+ case CPU_BMIPS32:
case CPU_BMIPS3300:
case CPU_BMIPS4350:
- case CPU_BMIPS4380:
-+ case CPU_BMIPS4KC:
- case CPU_BMIPS5000:
- case CPU_LOONGSON2:
- case CPU_R5500: