From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dabpb-0000Pk-FI for barebox@lists.infradead.org; Thu, 27 Jul 2017 05:59:33 +0000 From: Oleksij Rempel Date: Thu, 27 Jul 2017 07:59:08 +0200 Message-Id: <20170727055908.2715-1-o.rempel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v1] MIPS: add 74Kc info To: l.stach@pengutronix.de Cc: Oleksij Rempel , barebox@lists.infradead.org This patch is preparation for SoC QCA AR9344 Signed-off-by: Oleksij Rempel --- arch/mips/include/asm/cpu.h | 2 ++ arch/mips/lib/cpu-probe.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h index 572cabba34..e0bb78ea61 100644 --- a/arch/mips/include/asm/cpu.h +++ b/arch/mips/include/asm/cpu.h @@ -51,6 +51,7 @@ #define PRID_IMP_24K 0x9300 #define PRID_IMP_24KE 0x9600 +#define PRID_IMP_74K 0x9700 /* * These are the PRID's for when 23:16 == PRID_COMP_BROADCOM @@ -105,6 +106,7 @@ enum cpu_type_enum { * MIPS32 class processors */ CPU_24K, + CPU_74K, CPU_BMIPS3300, CPU_JZRISC, CPU_LOONGSON1, diff --git a/arch/mips/lib/cpu-probe.c b/arch/mips/lib/cpu-probe.c index 71dbaf6382..b5d63db189 100644 --- a/arch/mips/lib/cpu-probe.c +++ b/arch/mips/lib/cpu-probe.c @@ -106,6 +106,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c) c->cputype = CPU_24K; __cpu_name = "MIPS 24Kc"; break; + case PRID_IMP_74K: + c->cputype = CPU_74K; + __cpu_name = "MIPS 74Kc"; + break; } } -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox