Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/arm32 Enable clockswitching on sa110 (with it...



details:   https://anonhg.NetBSD.org/src/rev/3696fb2fd661
branches:  trunk
changeset: 508652:3696fb2fd661
user:      chris <chris%NetBSD.org@localhost>
date:      Mon Apr 16 18:09:56 2001 +0000

description:
Enable clockswitching on sa110 (with it disabled the core clock runs at the speed of the memory bus)

diffstat:

 sys/arch/arm32/arm32/cpufunc.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 3a8bd66b8745 -r 3696fb2fd661 sys/arch/arm32/arm32/cpufunc.c
--- a/sys/arch/arm32/arm32/cpufunc.c    Mon Apr 16 17:30:32 2001 +0000
+++ b/sys/arch/arm32/arm32/cpufunc.c    Mon Apr 16 18:09:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc.c,v 1.17 2001/03/10 20:03:51 bjh21 Exp $       */
+/*     $NetBSD: cpufunc.c,v 1.18 2001/04/16 18:09:56 chris Exp $       */
 
 /*
  * arm8 support code Copyright (c) 1997 ARM Limited
@@ -1263,5 +1263,8 @@
        /* Set the control register */    
 /*     cpu_control(cpuctrlmask, cpuctrl);*/
        cpu_control(0xffffffff, cpuctrl);
+
+       /* enable clockswitching */
+       __asm ("mcr 15, 0, r0, c15, c1, 2");
 }
 #endif /* CPU_SA110 */



Home | Main Index | Thread Index | Old Index