Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: mm: scache: Add secondary cache support for MIPS R6 cores

The secondary cache initialization and configuration code is processor
specific so we need to handle MIPS R6 cores as well.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>

+4 -2
+2 -1
arch/mips/mm/c-r4k.c
··· 1473 1473 1474 1474 default: 1475 1475 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M32R2 | 1476 - MIPS_CPU_ISA_M64R1 | MIPS_CPU_ISA_M64R2)) { 1476 + MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R1 | 1477 + MIPS_CPU_ISA_M64R2 | MIPS_CPU_ISA_M64R6)) { 1477 1478 #ifdef CONFIG_MIPS_CPU_SCACHE 1478 1479 if (mips_sc_init ()) { 1479 1480 scache_size = c->scache.ways * c->scache.sets * c->scache.linesz;
+2 -1
arch/mips/mm/sc-mips.c
··· 105 105 106 106 /* Ignore anything but MIPSxx processors */ 107 107 if (!(c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M32R2 | 108 - MIPS_CPU_ISA_M64R1 | MIPS_CPU_ISA_M64R2))) 108 + MIPS_CPU_ISA_M32R6 | MIPS_CPU_ISA_M64R1 | 109 + MIPS_CPU_ISA_M64R2 | MIPS_CPU_ISA_M64R6))) 109 110 return 0; 110 111 111 112 /* Does this MIPS32/MIPS64 CPU have a config2 register? */