Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Andrew Isaacson" <adi@broadcom.com>
To: linux-mips@linux-mips.org
Subject: [PATCH 4/12]  sb1a-support
Date: Wed, 19 Oct 2005 23:56:20 -0700	[thread overview]
Message-ID: <20051020065619.GD23899@broadcom.com> (raw)
In-Reply-To: <20051020065320.GA23857@broadcom.com>

Add support for SB-1A CPU.

Signed-Off-By: Andy Isaacson <adi@broadcom.com>

 arch/mips/kernel/cpu-probe.c |    3 +++
 arch/mips/kernel/proc.c      |    1 +
 arch/mips/mm/tlbex.c         |    1 +
 include/asm-mips/addrspace.h |    2 +-
 include/asm-mips/cpu.h       |    4 +++-
 5 files changed, 9 insertions(+), 2 deletions(-)

Index: lmo/arch/mips/mm/tlbex.c
===================================================================
--- lmo.orig/arch/mips/mm/tlbex.c	2005-10-19 22:34:08.000000000 -0700
+++ lmo/arch/mips/mm/tlbex.c	2005-10-19 22:34:12.000000000 -0700
@@ -854,6 +854,7 @@
 	case CPU_R12000:
 	case CPU_4KC:
 	case CPU_SB1:
+	case CPU_SB1A:
 	case CPU_4KSC:
 	case CPU_20KC:
 	case CPU_25KF:
Index: lmo/arch/mips/kernel/cpu-probe.c
===================================================================
--- lmo.orig/arch/mips/kernel/cpu-probe.c	2005-10-19 22:34:10.000000000 -0700
+++ lmo/arch/mips/kernel/cpu-probe.c	2005-10-19 22:34:12.000000000 -0700
@@ -629,6 +629,9 @@
 		c->options &= ~(MIPS_CPU_FPU | MIPS_CPU_32FPR);
 #endif
 		break;
+	case PRID_IMP_SB1A:
+		c->cputype = CPU_SB1A;
+		break;
 	}
 }
 
Index: lmo/arch/mips/kernel/proc.c
===================================================================
--- lmo.orig/arch/mips/kernel/proc.c	2005-10-19 22:34:08.000000000 -0700
+++ lmo/arch/mips/kernel/proc.c	2005-10-19 22:34:12.000000000 -0700
@@ -56,6 +56,7 @@
         [CPU_5KC]	= "MIPS 5Kc",
 	[CPU_R4310]	= "R4310",
 	[CPU_SB1]	= "SiByte SB1",
+	[CPU_SB1A]	= "SiByte SB1A",
 	[CPU_TX3912]	= "TX3912",
 	[CPU_TX3922]	= "TX3922",
 	[CPU_TX3927]	= "TX3927",
Index: lmo/include/asm-mips/cpu.h
===================================================================
--- lmo.orig/include/asm-mips/cpu.h	2005-10-19 22:34:08.000000000 -0700
+++ lmo/include/asm-mips/cpu.h	2005-10-19 22:34:12.000000000 -0700
@@ -93,6 +93,7 @@
  */
 
 #define PRID_IMP_SB1            0x0100
+#define PRID_IMP_SB1A           0x1100
 
 /*
  * These are the PRID's for when 23:16 == PRID_COMP_SANDCRAFT
@@ -194,7 +195,8 @@
 #define CPU_AU1200		59
 #define CPU_34K			60
 #define CPU_PR4450		61
-#define CPU_LAST		61
+#define CPU_SB1A		62
+#define CPU_LAST		62
 
 /*
  * ISA Level encodings
Index: lmo/include/asm-mips/addrspace.h
===================================================================
--- lmo.orig/include/asm-mips/addrspace.h	2005-10-19 22:34:08.000000000 -0700
+++ lmo/include/asm-mips/addrspace.h	2005-10-19 22:34:12.000000000 -0700
@@ -162,7 +162,7 @@
 #define TO_PHYS_MASK	_LLCONST_(0x000000ffffffffff)	/* 2^^40 - 1 */
 #endif
 
-#if defined(CONFIG_CPU_SB1)
+#if defined(CONFIG_CPU_SB1) || defined(CONFIG_CPU_SB1A)
 #define KUSIZE		_LLCONST_(0x0000100000000000)	/* 2^^44 */
 #define KUSIZE_64	_LLCONST_(0x0000100000000000)	/* 2^^44 */
 #define K0SIZE		_LLCONST_(0x0000100000000000)	/* 2^^44 */

  parent reply	other threads:[~2005-10-20  6:58 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20  6:53 [PATCH 0/12] bcm1480 support Andrew Isaacson
2005-10-20  6:54 ` [PATCH 1/12] sibyte-fixes Andrew Isaacson
2005-10-20  6:55 ` [PATCH 2/12] 1480-headers Andrew Isaacson
2005-10-20  6:55 ` [PATCH 3/12] sibyte-header-cleanup Andrew Isaacson
2005-10-20  6:56 ` Andrew Isaacson [this message]
2005-10-20  6:56 ` [PATCH 5/12] 1480-support Andrew Isaacson
2005-10-20  6:57 ` [PATCH 6/12] bigsur-support Andrew Isaacson
2005-10-20  6:57 ` [PATCH 7/12] sb1-cache-exc-handling Andrew Isaacson
2005-10-20  6:57 ` [PATCH 8/12] cerr-printk-not-prom-printf Andrew Isaacson
2005-10-20 10:49   ` Ralf Baechle
2005-10-20 11:02     ` Dominic Sweetman
2005-10-20 11:17       ` Ralf Baechle
2005-10-20  6:58 ` [PATCH 9/12] sbmac-fixes Andrew Isaacson
2005-10-20  6:58 ` [PATCH 10/12] 1480-pci-support Andrew Isaacson
2005-10-20  6:59 ` [PATCH 11/12] 1480-ht-support Andrew Isaacson
2005-10-20  6:59 ` [PATCH 12/12] pci-expmem-hack Andrew Isaacson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051020065619.GD23899@broadcom.com \
    --to=adi@broadcom.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox