提交 1dbf6a81 编写于 作者: P Paul Burton 提交者: Ralf Baechle

MIPS: Add M6250 cases to CPU switch statements

Add casses supporting the M6250 CPU to various switch statements in the
core MIPS kernel code that define behaviour dependent upon the CPU.
Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
Cc: Joshua Kinard <kumba@gentoo.org>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Maciej W. Rozycki <macro@codesourcery.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/12374/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 df8b1a5e
...@@ -77,6 +77,10 @@ static inline int __pure __get_cpu_type(const int cpu_type) ...@@ -77,6 +77,10 @@ static inline int __pure __get_cpu_type(const int cpu_type)
*/ */
#endif #endif
#ifdef CONFIG_SYS_HAS_CPU_MIPS32_R6
case CPU_M6250:
#endif
#ifdef CONFIG_SYS_HAS_CPU_MIPS64_R6 #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R6
case CPU_I6400: case CPU_I6400:
case CPU_P6600: case CPU_P6600:
......
...@@ -1286,6 +1286,7 @@ static void probe_pcache(void) ...@@ -1286,6 +1286,7 @@ static void probe_pcache(void)
case CPU_QEMU_GENERIC: case CPU_QEMU_GENERIC:
case CPU_I6400: case CPU_I6400:
case CPU_P6600: case CPU_P6600:
case CPU_M6250:
if (!(read_c0_config7() & MIPS_CONF7_IAR) && if (!(read_c0_config7() & MIPS_CONF7_IAR) &&
(c->icache.waysize > PAGE_SIZE)) (c->icache.waysize > PAGE_SIZE))
c->icache.flags |= MIPS_CACHE_ALIASES; c->icache.flags |= MIPS_CACHE_ALIASES;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册