LEAF_ENTRY SetRunMode
;;;;;set PXA270 Run
Freq;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
ldr r0,=0x41300000
ldr r1,[r0, #CCCR_OFFSET]
ldr r2,=0xfffff860
and r1,r1,r2
orr r1,r1,#0x10 ;L=16
orr r1,r1,#0x280 ;2N=5 Turbo
Mode=520M
str r1,[r0, #CCCR_OFFSET]
mov r3,#0x2 ;Frequency Change
orr r3,r3,#0x1 ;Set CPU to Turbo Mode
mcr p14, 0, r3, c6, c0, 0 ;write CLKCFG
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG wait for six
clock
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG
mrc p14, 0, r3, c6, c0, 0 ;read CLKCFG
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
RETURN
then the CPU will become unstable,and reboot randomly.To my
surprise,why the cpu run in turbo mode without the current increase? Is
my method right?Can the PXA270 run up to 520MHz only in turbo mode?(My
CPU is PXA270C5C520)