mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] enable suspend-on-halt for NS Geode
@ 2004-04-03  4:27 Matt Mackall
  0 siblings, 0 replies; only message in thread
From: Matt Mackall @ 2004-04-03  4:27 UTC (permalink / raw)
  To: linux-kernel, Andrew Morton

This enables deep powersaving mode on Geode boxes

From: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Subject: NS Geode, enable Suspend-on-Halt


Index: linux-2.6.0-test11/arch/i386/kernel/cpu/cyrix.c
===================================================================
RCS file: /build/cvsroot/linux-2.6.0-test11/arch/i386/kernel/cpu/cyrix.c,v
retrieving revision 1.1.1.1
diff -u -p -B -r1.1.1.1 cyrix.c


 tiny-mpm/arch/i386/kernel/cpu/cyrix.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -puN arch/i386/kernel/cpu/cyrix.c~geode arch/i386/kernel/cpu/cyrix.c
--- tiny/arch/i386/kernel/cpu/cyrix.c~geode	2004-03-20 12:14:39.000000000 -0600
+++ tiny-mpm/arch/i386/kernel/cpu/cyrix.c	2004-03-20 12:14:39.000000000 -0600
@@ -167,7 +167,10 @@ static void __init geode_configure(void)
 	unsigned long flags;
 	u8 ccr3, ccr4;
 	local_irq_save(flags);
-	
+
+	/* Suspend on halt power saving and enable #SUSP pin */
+	setCx86(CX86_CCR2, getCx86(CX86_CCR2) | 0x88);
+
 	ccr3 = getCx86(CX86_CCR3);
 	setCx86(CX86_CCR3, (ccr3 & 0x0f) | 0x10);	/* Enable */
 	

_

-- 
Matt Mackall : http://www.selenic.com : Linux development and consulting

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-03  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-03  4:27 [PATCH] enable suspend-on-halt for NS Geode Matt Mackall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®