Pick up support for a few more things for the IBM750FX: l2cache

configuration and temperature sensor support, for example.
This commit is contained in:
briggs 2002-06-21 01:38:57 +00:00
parent 6fcbf3b943
commit 31d3b62eff
1 changed files with 5 additions and 3 deletions

View File

@ -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 @@ cpu_attach_common(struct device *self, int id)
#ifdef NAPMODE
switch (vers) {
case IBM750FX:
case MPC750:
case MPC7400:
/* Select NAP mode. */
@ -234,6 +235,7 @@ cpu_attach_common(struct device *self, int id)
#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 @@ cpu_attach_common(struct device *self, int id)
/*
* 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 @@ cpu_attach_common(struct device *self, int id)
* 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