summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2005-10-03 19:34:47 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2005-10-03 19:34:47 +0000
commitbb439aa8290690de9ffc56a80b8204d51b57e44f (patch)
treeae9cbfc0e8706c3d48421e7beb203ee9c98be908 /sys/arch
parentca1949e93212a5516e64d65bf4092cf5eb32661b (diff)
Put the 970 in correct sleep mode, ok deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/macppc/macppc/cpu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/macppc/macppc/cpu.c b/sys/arch/macppc/macppc/cpu.c
index 7914f69b001..ff6b9458ac3 100644
--- a/sys/arch/macppc/macppc/cpu.c
+++ b/sys/arch/macppc/macppc/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.27 2005/10/03 04:40:09 deraadt Exp $ */
+/* $OpenBSD: cpu.c,v 1.28 2005/10/03 19:34:46 drahn Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -260,6 +260,11 @@ cpuattach(struct device *parent, struct device *dev, void *aux)
if (cpu == PPC_CPU_MPC7450 && (pvr & 0xffff) < 0x0200)
hid0 &= ~HID0_BTIC;
break;
+ case PPC_CPU_IBM970:
+ /* select NAP mode */
+ hid0 &= ~(HID0_DOZE | HID0_SLEEP);
+ hid0 |= HID0_NAP | HID0_DPM;
+ break;
}
ppc_mthid0(hid0);