summaryrefslogtreecommitdiff
path: root/cpu/pxa
diff options
context:
space:
mode:
authorMarkus Klotzbücher <Markus Klotzbümk@pollux.(none)>2006-02-28 23:11:07 +0100
committerMarkus Klotzbücher <mk@pollux.(none)>2006-02-28 23:11:07 +0100
commite8cd00835ebcae4681e9a673bf33318687756eff (patch)
treee57afefa5f3d1e5777c9ab54327772868a22c543 /cpu/pxa
parent00c35bd2140f02111612771ca9c53dc8b58205eb (diff)
All subsystem clocks not immediately need are turned at reset.
Diffstat (limited to 'cpu/pxa')
-rw-r--r--cpu/pxa/start.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu/pxa/start.S b/cpu/pxa/start.S
index 994082691de..159447efe38 100644
--- a/cpu/pxa/start.S
+++ b/cpu/pxa/start.S
@@ -30,6 +30,7 @@
#include <config.h>
#include <version.h>
+#include <asm/arch/pxa-regs.h>
.globl _start
_start: b reset
@@ -217,6 +218,15 @@ cpu_init_crit:
mov r1, #0
mcr p6, 0, r1, c1, c0, 0 @ ICMR
mcr p6, 0, r1, c7, c0, 0 @ ICMR2
+
+ /* turn off all clocks but the ones we will definitly require */
+ ldr r1, =CKENA
+ ldr r2, =(CKENA_22_FFUART | CKENA_10_SRAM | CKENA_9_SMC | CKENA_8_DMC)
+ str r2, [r1]
+ ldr r1, =CKENB
+ ldr r2, =(CKENB_6_IRQ)
+ str r2, [r1]
+
#endif
#ifndef CONFIG_CPU_MONAHANS