[U-Boot-Users] patch: really change frequency
Holger Schurig
h.schurig at mn-logistik.de
Tue Nov 5 12:39:37 CET 2002
The following patch makes the PXA really change it's frequency
--- start.S 5 Nov 2002 00:18:03 -0000 1.3
+++ start.S 5 Nov 2002 11:38:47 -0000
@@ -173,14 +173,15 @@ OSTIMER_BASE: .word 0x40a00000
#define OSCR 0x10
#define OWER 0x18
#define OIER 0x1C
/* Clock Manager Registers */
+#ifdef CFG_CPUSPEED
CC_BASE: .word 0x41300000
#define CCCR 0x00
cpuspeed: .word CFG_CPUSPEED
-
+#endif
/* RS: ??? */
.macro CPWAIT
mrc p15,0,r0,c2,c0,0
mov r0,r0
sub pc,pc,#4
@@ -192,14 +193,18 @@ cpu_init_crit:
/* mask all IRQs */
ldr r0, IC_BASE
mov r1, #0x00
str r1, [r0, #ICMR]
+#ifdef CFG_CPUSPEED
/* set clock speed */
ldr r0, CC_BASE
ldr r1, cpuspeed
str r1, [r0, #CCCR]
+ mov r0, #3
+ mcr p14, 0, r0, c6, c0, 0
+#endif
/*
* before relocating, we have to setup RAM timing
* because memory timing is board-dependend, you will
* find a memsetup.S in your board directory.
--
MN-Logistik GmbH http://www.mn-logistik.de
Holger Schurig
Dieselstr. 18
61191 Rosbach v.d.Höhe
Tel: 06003/9141-0 Fax: 06003/9141-49
More information about the U-Boot
mailing list