diff options
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch | 34 |
1 files changed, 34 insertions, 0 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 new file mode 100644 index 0000000..3b6c797 --- /dev/null +++ b/target/linux/brcm47xx/patches-2.6.37/017-MIPS-BCM47xx-bmips4kc_fix.patch @@ -0,0 +1,34 @@ +--- 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 + c->options |= MIPS_CPU_ULRI; + break; + case PRID_IMP_BMIPS4KC: +- c->cputype = CPU_4KC; +- __cpu_name[cpu] = "MIPS 4Kc"; ++ c->cputype = CPU_BMIPS4KC; ++ __cpu_name[cpu] = "Broadcom BMIPS4Kc"; + 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 + case CPU_BMIPS3300: + case CPU_BMIPS4350: + case CPU_BMIPS4380: ++ case CPU_BMIPS4KC: + case CPU_BMIPS5000: + case CPU_LOONGSON2: + case CPU_R5500: |