linux-mips
[Top] [All Lists]

[PATCH 2/5] MIPS: Probe for new OCTEON CPU/SoC types.

To: linux-mips@linux-mips.org, ralf@linux-mips.org
Subject: [PATCH 2/5] MIPS: Probe for new OCTEON CPU/SoC types.
From: David Daney <ddaney.cavm@gmail.com>
Date: Mon, 29 Jul 2013 15:07:01 -0700
Cc: David Daney <david.daney@cavium.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=C7htIkuj13wZlJUlzSzc50Zk58Q1i2wCO7mHSMGC958=; b=K5tdAZXpu1E+HGD6Ng85jTjW/5evr/ggZP3tx69r3+xKCsTnqD2OCNQp93Cuietbz9 rZKFybqBMfQScZr7KMjfJb0bCIhuB+jFG7yNejI8kzxpvCvO66kJmyaSFvgqgJQpQdD4 LrPkoVncGiEC1hQIMlc+nsOCU0iqAPLNGtLWoxJNufPvDqE0WqMFXW17SxpbsHhVAcsG FGup91HGXUF7GlUObE3O15kTQuuIZW08rmwTi6a0eGeq5bekhPUcl4Q/V9cuffhAa1Tw RHbGuI4MdvYPuuu4Fop+6yvVem+JlfLitVu4TwoBolkAqpMC1dyQ3+RCF+HWiOWqKUu4 1NiQ==
In-reply-to: <1375135624-30950-1-git-send-email-ddaney.cavm@gmail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1375135624-30950-1-git-send-email-ddaney.cavm@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: David Daney <david.daney@cavium.com>

Add probing for CNF71XX, CN78XX and CN70XX.

Signed-off-by: David Daney <david.daney@cavium.com>
---
 arch/mips/kernel/cpu-probe.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 4c6167a..8e8feb8 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -852,10 +852,17 @@ platform:
        case PRID_IMP_CAVIUM_CN63XX:
        case PRID_IMP_CAVIUM_CN66XX:
        case PRID_IMP_CAVIUM_CN68XX:
+       case PRID_IMP_CAVIUM_CNF71XX:
                c->cputype = CPU_CAVIUM_OCTEON2;
                __cpu_name[cpu] = "Cavium Octeon II";
                set_elf_platform(cpu, "octeon2");
                break;
+       case PRID_IMP_CAVIUM_CN70XX:
+       case PRID_IMP_CAVIUM_CN78XX:
+               c->cputype = CPU_CAVIUM_OCTEON3;
+               __cpu_name[cpu] = "Cavium Octeon III";
+               set_elf_platform(cpu, "octeon3");
+               break;
        default:
                printk(KERN_INFO "Unknown Octeon chip!\n");
                c->cputype = CPU_UNKNOWN;
-- 
1.7.11.7


<Prev in Thread] Current Thread [Next in Thread>