]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
MIPS: Add support for the M5150 processor
authorLeonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Tue, 4 Mar 2014 13:34:43 +0000 (13:34 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 26 Mar 2014 22:09:22 +0000 (23:09 +0100)
The M5150 core is a 32-bit MIPS RISC which implements the
MIPS Architecture Release-5  in a 5-stage pipeline.
In addition, it includes the MIPS Architecture Virtualization Module
that enables virtualization of operating systems,
which provides a scalable, trusted, and secure execution environment.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6596/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/cpu-type.h
arch/mips/include/asm/cpu.h
arch/mips/kernel/idle.c
arch/mips/mm/c-r4k.c
arch/mips/mm/tlbex.c
arch/mips/oprofile/common.c
arch/mips/oprofile/op_model_mipsxx.c

index 61f803be4c2e59ecc65f9a082b6b15f0aff2ff65..760c9cf0f13584d95da74d63f8e024f1a7d3de34 100644 (file)
@@ -47,6 +47,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)
        case CPU_INTERAPTIV:
        case CPU_PROAPTIV:
        case CPU_P5600:
+       case CPU_M5150:
 #endif
 
 #ifdef CONFIG_SYS_HAS_CPU_MIPS64_R1
index 161113274bb8da3fb0d391044dd5b69ea35164b7..64b4b69d26f46542998c8309f582d81f53035dc5 100644 (file)
@@ -298,7 +298,7 @@ enum cpu_type_enum {
        CPU_4KC, CPU_4KEC, CPU_4KSC, CPU_24K, CPU_34K, CPU_1004K, CPU_74K,
        CPU_ALCHEMY, CPU_PR4450, CPU_BMIPS32, CPU_BMIPS3300, CPU_BMIPS4350,
        CPU_BMIPS4380, CPU_BMIPS5000, CPU_JZRISC, CPU_LOONGSON1, CPU_M14KC,
-       CPU_M14KEC, CPU_INTERAPTIV, CPU_P5600, CPU_PROAPTIV, CPU_1074K,
+       CPU_M14KEC, CPU_INTERAPTIV, CPU_P5600, CPU_PROAPTIV, CPU_1074K, CPU_M5150,
 
        /*
         * MIPS64 class processors
index 04ea1c7a3d31b8e1ce7e24652648edb686b36759..9f904eda5de5de9bfbf7e3ba3855c71d3725a886 100644 (file)
@@ -188,6 +188,7 @@ void __init check_wait(void)
        case CPU_INTERAPTIV:
        case CPU_PROAPTIV:
        case CPU_P5600:
+       case CPU_M5150:
                cpu_wait = r4k_wait;
                if (read_c0_config7() & MIPS_CONF7_WII)
                        cpu_wait = r4k_wait_irqoff;
index a62b6379b6aefa71dceb6e5b83b6cefb9629c9ee..3e53f1b065d6694daabcb29b48b97ee6b8768feb 100644 (file)
@@ -1173,6 +1173,7 @@ static void probe_pcache(void)
        case CPU_INTERAPTIV:
        case CPU_P5600:
        case CPU_PROAPTIV:
+       case CPU_M5150:
                if ((c->cputype == CPU_74K) || (c->cputype == CPU_1074K))
                        alias_74k_erratum(c);
                if (!(read_c0_config7() & MIPS_CONF7_IAR) &&
index ccae9a46e222d291c48e66734884093a52efaa18..be407d5ccc4e3cf6d8aa5eb1ca79f124056af764 100644 (file)
@@ -512,6 +512,7 @@ static void build_tlb_write_entry(u32 **p, struct uasm_label **l,
                case CPU_1074K:
                case CPU_PROAPTIV:
                case CPU_P5600:
+               case CPU_M5150:
                        break;
 
                default:
index e4ca70bf0573a67ca291b7c79e1e55311b8b5cc9..e7473244947831bf7c46a54db40d33e886642929 100644 (file)
@@ -90,6 +90,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
        case CPU_INTERAPTIV:
        case CPU_PROAPTIV:
        case CPU_P5600:
+       case CPU_M5150:
        case CPU_LOONGSON1:
        case CPU_SB1:
        case CPU_SB1A:
index 9797493546e474ce285710667d64431690f640ce..42821ae2d77e586155eb2554232af87481423731 100644 (file)
@@ -389,6 +389,10 @@ static int __init mipsxx_init(void)
                op_model_mipsxx_ops.cpu_type = "mips/P5600";
                break;
 
+       case CPU_M5150:
+               op_model_mipsxx_ops.cpu_type = "mips/M5150";
+               break;
+
        case CPU_5KC:
                op_model_mipsxx_ops.cpu_type = "mips/5K";
                break;