Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/oea Add support for the IBM750GX (from Bob ...
details: https://anonhg.NetBSD.org/src/rev/6332695ab9c2
branches: trunk
changeset: 761949:6332695ab9c2
user: matt <matt%NetBSD.org@localhost>
date: Sat Feb 12 01:02:12 2011 +0000
description:
Add support for the IBM750GX (from Bob Lee).
diffstat:
sys/arch/powerpc/oea/cpu_subr.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (101 lines):
diff -r f118823ddb0b -r 6332695ab9c2 sys/arch/powerpc/oea/cpu_subr.c
--- a/sys/arch/powerpc/oea/cpu_subr.c Fri Feb 11 23:56:17 2011 +0000
+++ b/sys/arch/powerpc/oea/cpu_subr.c Sat Feb 12 01:02:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_subr.c,v 1.61 2011/01/18 02:25:42 matt Exp $ */
+/* $NetBSD: cpu_subr.c,v 1.62 2011/02/12 01:02:12 matt Exp $ */
/*-
* Copyright (c) 2001 Matt Thomas.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.61 2011/01/18 02:25:42 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_subr.c,v 1.62 2011/02/12 01:02:12 matt Exp $");
#include "opt_ppcparam.h"
#include "opt_multiprocessor.h"
@@ -211,6 +211,7 @@
{ "620", MPC620, REVFMT_HEX },
{ "750", MPC750, REVFMT_MAJMIN },
{ "750FX", IBM750FX, REVFMT_MAJMIN },
+ { "750GX", IBM750GX, REVFMT_MAJMIN },
{ "7400", MPC7400, REVFMT_MAJMIN },
{ "7410", MPC7410, REVFMT_MAJMIN },
{ "7450", MPC7450, REVFMT_MAJMIN },
@@ -277,6 +278,9 @@
else if (MPC745X_P(vers) && vers != MPC7450)
oeacpufeat |= OEACPU_XBSEN | OEACPU_HIGHBAT | OEACPU_HIGHSPRG;
+
+ else if (vers == IBM750FX || vers == IBM750GX)
+ oeacpufeat |= OEACPU_HIGHBAT;
}
void
@@ -324,6 +328,7 @@
switch (vers) {
#define K *1024
case IBM750FX:
+ case IBM750GX:
case MPC601:
case MPC750:
case MPC7400:
@@ -501,6 +506,7 @@
case MPC750:
case IBM750FX:
+ case IBM750GX:
/* Select NAP mode. */
hid0 &= ~(HID0_DOZE | HID0_NAP | HID0_SLEEP);
hid0 |= HID0_NAP | HID0_DPM;
@@ -540,6 +546,7 @@
#ifdef NAPMODE
switch (vers) {
case IBM750FX:
+ case IBM750GX:
case MPC750:
case MPC7400:
/* Select NAP mode. */
@@ -551,6 +558,7 @@
switch (vers) {
case IBM750FX:
+ case IBM750GX:
case MPC750:
hid0 &= ~HID0_DBP; /* XXX correct? */
hid0 |= HID0_EMCP | HID0_BTIC | HID0_SGE | HID0_BHT;
@@ -603,6 +611,7 @@
case MPC604ev:
case MPC750:
case IBM750FX:
+ case IBM750GX:
case MPC7400:
case MPC7410:
case MPC7447A:
@@ -621,6 +630,7 @@
cpu_config_l3cr(vers);
break;
case IBM750FX:
+ case IBM750GX:
case MPC750:
case MPC7400:
case MPC7410:
@@ -642,7 +652,7 @@
* XXX supported by Motorola and may return values that are off by
* XXX 35-55 degrees C.
*/
- if (vers == MPC750 || vers == IBM750FX)
+ if (vers == MPC750 || vers == IBM750FX || vers == IBM750GX)
cpu_tau_setup(ci);
#endif
@@ -902,6 +912,7 @@
switch (vers) {
case IBM750FX:
+ case IBM750GX:
cpu_fmttab_print(cpu_ibm750_l2cr_formats, l2cr);
break;
case MPC750:
Home |
Main Index |
Thread Index |
Old Index