Skip to content

Commit b5ad2c2

Browse files
author
Markos Chandras
committed
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>
1 parent 4ee4862 commit b5ad2c2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎arch/mips/mm/c-r4k.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,8 @@ static void setup_scache(void)
14731473

14741474
default:
14751475
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)) {
14771478
#ifdef CONFIG_MIPS_CPU_SCACHE
14781479
if (mips_sc_init ()) {
14791480
scache_size = c->scache.ways * c->scache.sets * c->scache.linesz;

‎arch/mips/mm/sc-mips.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ static inline int __init mips_sc_probe(void)
105105

106106
/* Ignore anything but MIPSxx processors */
107107
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)))
109110
return 0;
110111

111112
/* Does this MIPS32/MIPS64 CPU have a config2 register? */

0 commit comments

Comments
 (0)