Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm add cpu id for "PXA250/210 3rd version CPUcore".



details:   https://anonhg.NetBSD.org/src/rev/b34d42128dde
branches:  trunk
changeset: 533837:b34d42128dde
user:      ichiro <ichiro%NetBSD.org@localhost>
date:      Wed Jul 10 07:00:50 2002 +0000

description:
add cpu id for "PXA250/210 3rd version CPUcore".

for using many PDA/xscale-core.

diffstat:

 sys/arch/arm/arm/cpufunc.c    |   5 +++--
 sys/arch/arm/arm32/cpu.c      |  14 +++++++++-----
 sys/arch/arm/include/armreg.h |   8 +++++---
 3 files changed, 17 insertions(+), 10 deletions(-)

diffs (77 lines):

diff -r e01f191ae421 -r b34d42128dde sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c        Wed Jul 10 06:02:09 2002 +0000
+++ b/sys/arch/arm/arm/cpufunc.c        Wed Jul 10 07:00:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.c,v 1.46 2002/06/07 18:25:28 thorpej Exp $     */
+/*     $NetBSD: cpufunc.c,v 1.47 2002/07/10 07:00:50 ichiro Exp $      */
 
 /*
  * arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -930,7 +930,8 @@
        }
 #endif /* CPU_XSCALE_80321 */
 #ifdef CPU_XSCALE_PXA2X0
-       if (cputype == CPU_ID_PXA250 || cputype == CPU_ID_PXA210) {
+       if (cputype == CPU_ID_PXA250A || cputype == CPU_ID_PXA210A ||
+           cputype == CPU_ID_PXA250B || cputype == CPU_ID_PXA210B) {
                cpufuncs = xscale_cpufuncs;
 
                cpu_reset_needs_v4_MMU_disable = 1;     /* XScale needs it */
diff -r e01f191ae421 -r b34d42128dde sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c  Wed Jul 10 06:02:09 2002 +0000
+++ b/sys/arch/arm/arm32/cpu.c  Wed Jul 10 07:00:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.38 2002/06/07 18:25:28 thorpej Exp $ */
+/*     $NetBSD: cpu.c,v 1.39 2002/07/10 07:00:52 ichiro Exp $  */
 
 /*
  * Copyright (c) 1995 Mark Brinicombe.
@@ -45,7 +45,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.38 2002/06/07 18:25:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.39 2002/07/10 07:00:52 ichiro Exp $");
 
 #include <sys/systm.h>
 #include <sys/malloc.h>
@@ -298,10 +298,14 @@
        { CPU_ID_80321_600,     CPU_CLASS_XSCALE,       "i80321 600MHz",
          xscale_steppings },
 
-       { CPU_ID_PXA250,        CPU_CLASS_XSCALE,       "PXA250",
+       { CPU_ID_PXA250A,       CPU_CLASS_XSCALE,       "PXA250(1st ver core)",
+         pxa2x0_steppings },
+       { CPU_ID_PXA210A,       CPU_CLASS_XSCALE,       "PXA210(1st ver core)",
          pxa2x0_steppings },
-       { CPU_ID_PXA210,        CPU_CLASS_XSCALE,       "PXA210",
-         pxa2x0_steppings },   /* XXX */
+       { CPU_ID_PXA250B,       CPU_CLASS_XSCALE,       "PXA250(3rd ver core)",
+         pxa2x0_steppings },
+       { CPU_ID_PXA210B,       CPU_CLASS_XSCALE,       "PXA210(3rd ver core)",
+         pxa2x0_steppings },
 
        { CPU_ID_ARM1022ES,     CPU_CLASS_ARM10E,       "ARM1022ES",
          generic_steppings },
diff -r e01f191ae421 -r b34d42128dde sys/arch/arm/include/armreg.h
--- a/sys/arch/arm/include/armreg.h     Wed Jul 10 06:02:09 2002 +0000
+++ b/sys/arch/arm/include/armreg.h     Wed Jul 10 07:00:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armreg.h,v 1.19 2002/06/07 18:25:29 thorpej Exp $      */
+/*     $NetBSD: armreg.h,v 1.20 2002/07/10 07:00:52 ichiro Exp $       */
 
 /*
  * Copyright (c) 1998, 2001 Ben Harris
@@ -189,8 +189,10 @@
 #define CPU_ID_SA1110          0x6901b110
 #define CPU_ID_IXP1200         0x6901c120
 #define CPU_ID_80200           0x69052000
-#define CPU_ID_PXA250          0x69052100
-#define CPU_ID_PXA210          0x69052120
+#define CPU_ID_PXA250A         0x69052100 /* 1st version Core */
+#define CPU_ID_PXA210A         0x69052120 /* 1st version Core */
+#define CPU_ID_PXA250B         0x69052900 /* 3rd version Core */
+#define CPU_ID_PXA210B         0x69052920 /* 3rd version Core */
 #define        CPU_ID_80321_400        0x69052420
 #define        CPU_ID_80321_600        0x69052430
 



Home | Main Index | Thread Index | Old Index