diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-21 17:37:12 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2002-03-21 17:37:12 +0000 |
commit | b169431d221c0823cde0750a65382c1c41b8efe4 (patch) | |
tree | 272a877ce7ff411a2ea67074248db74306bf9b59 /sys | |
parent | cdf75655ef0c84a7686e72e575da2be575af83f3 (diff) |
Recognize 7455 processor, distinguish between 7450/7451.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/macppc/macppc/cpu.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c index 1a790f8d143..3d4562cab2f 100644 --- a/sys/arch/macppc/macppc/cpu.c +++ b/sys/arch/macppc/macppc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.2 2002/03/14 01:26:36 millert Exp $ */ +/* $OpenBSD: cpu.c,v 1.3 2002/03/21 17:37:11 drahn Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -53,6 +53,7 @@ #define MPC7400 12 #define MPC7410 0x800c #define MPC7450 0x8000 +#define MPC7455 0x8001 /* only valid on 603(e,ev) and G3, G4 */ #define HID0_DOZE (1 << (31-8)) @@ -134,7 +135,13 @@ cpuattach(parent, dev, aux) sprintf(cpu_model, "7410"); break; case MPC7450: - sprintf(cpu_model, "7450"); + if ((pvr & 0xf) < 3) { + sprintf(cpu_model, "7450"); + } else { + sprintf(cpu_model, "7451"); + } + case MPC7455: + sprintf(cpu_model, "7455"); break; default: sprintf(cpu_model, "Version %x", cpu); @@ -177,6 +184,7 @@ cpuattach(parent, dev, aux) case MPC7400: case MPC7410: case MPC7450: + case MPC7455: /* select DOZE mode */ hid0 &= ~(HID0_NAP | HID0_SLEEP); hid0 |= HID0_DOZE | HID0_DPM; |