Module Name:    src
Committed By:   jakllsch
Date:           Sat Oct 29 18:56:50 UTC 2011

Modified Files:
        src/sys/arch/mips/include: cpuregs.h
        src/sys/arch/mips/mips: mips_machdep.c

Log Message:
Add Broadcom BCM3302 CPU to the table.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/sys/arch/mips/include/cpuregs.h
cvs rdiff -u -r1.249 -r1.250 src/sys/arch/mips/mips/mips_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/include/cpuregs.h
diff -u src/sys/arch/mips/include/cpuregs.h:1.87 src/sys/arch/mips/include/cpuregs.h:1.88
--- src/sys/arch/mips/include/cpuregs.h:1.87	Thu Sep 22 05:08:52 2011
+++ src/sys/arch/mips/include/cpuregs.h	Sat Oct 29 18:56:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpuregs.h,v 1.87 2011/09/22 05:08:52 macallan Exp $	*/
+/*	$NetBSD: cpuregs.h,v 1.88 2011/10/29 18:56:49 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 2009 Miodrag Vallat.
@@ -906,6 +906,11 @@
 #define	MIPS_1004K	0x99	/* MIPS 1004Kc/1004Kf		ISA 32  Rel 2 */
 
 /*
+ * CPU processor revision IDs for company ID == 2 (Broadcom)
+ */
+#define	MIPS_BCM3302	0x90	/* MIPS 4KEc_R2-like?		ISA 32  Rel 2 */
+
+/*
  * Alchemy (company ID 3) use the processor ID field to donote the CPU core
  * revision and the company options field do donate the SOC chip type.
  */

Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.249 src/sys/arch/mips/mips/mips_machdep.c:1.250
--- src/sys/arch/mips/mips/mips_machdep.c:1.249	Thu Sep 22 05:08:52 2011
+++ src/sys/arch/mips/mips/mips_machdep.c	Sat Oct 29 18:56:49 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: mips_machdep.c,v 1.249 2011/09/22 05:08:52 macallan Exp $	*/
+/*	$NetBSD: mips_machdep.c,v 1.250 2011/10/29 18:56:49 jakllsch Exp $	*/
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -112,7 +112,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.249 2011/09/22 05:08:52 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.250 2011/10/29 18:56:49 jakllsch Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -504,6 +504,9 @@ static const struct pridtab cputab[] = {
 	  MIPS_CP0FL_CONFIG3 | MIPS_CP0FL_CONFIG6 | MIPS_CP0FL_CONFIG7,
 	  0, "1004K" },
 
+	{ MIPS_PRID_CID_BROADCOM, MIPS_BCM3302, -1, -1, -1, 0,
+	  MIPS32_FLAGS | CPU_MIPS_DOUBLE_COUNT, 0, 0, "BCM3302"	},
+
 	{ MIPS_PRID_CID_ALCHEMY, MIPS_AU_REV1, -1, MIPS_AU1000, -1, 0,
 	  MIPS32_FLAGS | CPU_MIPS_NO_WAIT | CPU_MIPS_I_D_CACHE_COHERENT, 0, 0,
 						"Au1000 (Rev 1 core)"	},

Reply via email to