Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/mpc6xx Pick up support for a few more thing...



details:   https://anonhg.NetBSD.org/src/rev/e5a2a78fa03c
branches:  trunk
changeset: 533095:e5a2a78fa03c
user:      briggs <briggs%NetBSD.org@localhost>
date:      Fri Jun 21 01:38:57 2002 +0000

description:
Pick up support for a few more things for the IBM750FX: l2cache
configuration and temperature sensor support, for example.

diffstat:

 sys/arch/powerpc/mpc6xx/cpu_subr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r bfa339f1e84b -r e5a2a78fa03c sys/arch/powerpc/mpc6xx/cpu_subr.c
--- a/sys/arch/powerpc/mpc6xx/cpu_subr.c        Fri Jun 21 00:46:18 2002 +0000
+++ b/sys/arch/powerpc/mpc6xx/cpu_subr.c        Fri Jun 21 01:38:57 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu_subr.c,v 1.21 2002/06/21 00:01:53 matt Exp $       */
+/*     $NetBSD: cpu_subr.c,v 1.22 2002/06/21 01:38:57 briggs Exp $     */
 
 /*-
  * Copyright (c) 2001 Matt Thomas.
@@ -224,6 +224,7 @@
 
 #ifdef NAPMODE
        switch (vers) {
+       case IBM750FX:
        case MPC750:
        case MPC7400:
                /* Select NAP mode. */
@@ -234,6 +235,7 @@
 #endif
 
        switch (vers) {
+       case IBM750FX:
        case MPC750:
                hid0 &= ~HID0_DBP;              /* XXX correct? */
                hid0 |= HID0_EMCP | HID0_BTIC | HID0_SGE | HID0_BHT;
@@ -274,7 +276,7 @@
        /*
         * Display speed and cache configuration.
         */
-       if (vers == MPC750 || vers == MPC7400 ||
+       if (vers == MPC750 || vers == MPC7400 || vers == IBM750FX ||
            vers == MPC7410 || vers == MPC7450 || vers == MPC7455) {
                printf("%s", self->dv_xname);
                cpu_print_speed();
@@ -289,7 +291,7 @@
         * XXX supported by Motorola and may return values that are off by 
         * XXX 35-55 degrees C.
         */
-       if (vers == MPC750)
+       if (vers == MPC750 || vers == IBM750FX)
                cpu_tau_setup(ci);
 #endif
 



Home | Main Index | Thread Index | Old Index