提交 0e56b385 编写于 作者: D David Daney 提交者: Ralf Baechle

MIPS: Octeon: Probe for Octeon II CPUs.

The OCTEON II ISA extends the original OCTEON ISA, so give it its own
__elf_platform string so optimized libraries can be selected in
userspace.
Signed-off-by: NDavid Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1665/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 f8bf7e68
...@@ -187,6 +187,7 @@ void __init check_wait(void) ...@@ -187,6 +187,7 @@ void __init check_wait(void)
case CPU_BCM6358: case CPU_BCM6358:
case CPU_CAVIUM_OCTEON: case CPU_CAVIUM_OCTEON:
case CPU_CAVIUM_OCTEON_PLUS: case CPU_CAVIUM_OCTEON_PLUS:
case CPU_CAVIUM_OCTEON2:
case CPU_JZRISC: case CPU_JZRISC:
cpu_wait = r4k_wait; cpu_wait = r4k_wait;
break; break;
...@@ -953,6 +954,12 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu) ...@@ -953,6 +954,12 @@ static inline void cpu_probe_cavium(struct cpuinfo_mips *c, unsigned int cpu)
if (cpu == 0) if (cpu == 0)
__elf_platform = "octeon"; __elf_platform = "octeon";
break; break;
case PRID_IMP_CAVIUM_CN63XX:
c->cputype = CPU_CAVIUM_OCTEON2;
__cpu_name[cpu] = "Cavium Octeon II";
if (cpu == 0)
__elf_platform = "octeon2";
break;
default: default:
printk(KERN_INFO "Unknown Octeon chip!\n"); printk(KERN_INFO "Unknown Octeon chip!\n");
c->cputype = CPU_UNKNOWN; c->cputype = CPU_UNKNOWN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册