There is code in the TS-BOOTROM to set the clock:
I found this there:
mov ip, sp
cmp r0, #6 ; 0x6
stmdb sp!, {fp, ip, lr, pc}
ldr r1, =0x02b0b3b6
sub fp, ip, #0x4
bls LABEL1
ldr r3, =0x8001438c
mov r2, #0x7
str r2, [r3]
ldr r3, =0x80014388
mov r2, #0x2
str r2, [r3]
b LABEL2
LABEL1:
ldr r2, =0x8001438c
movne r3, #0x5
ldr ip, =0x80014388
ldr r1, =0x02a0bb36
moveq r3, #0x3
strne r3, [r2]
ldrne r1, =0x02b09a2f
movne r3, #1 ; 0x1
streq r0, [r2]
streq r3, [ip]
strne r3, [ip]
LABEL2
orr r1, r1, #262144 ; 0x40000
ldr r2, [pc, #116] ; 0xb38 ; 0x809300c0
mov r3, #170 ; 0xaa
str r3, [r2] ; unlock syscon
ldr r3, [pc, #108] ; 0xb3c ; 0x80930020
str r1, [r3] ; set clock speed
nop ; 5 NOPs to flush
nop
nop
nop
nop
// Set MMU to Asyncronous
mrc 15, 0, r0, cr1, cr0, {0}
orr r0, r0, #0xc0000000
mcr 15, 0, r0, cr1, cr0, {0}
nop
nop
nop
nop
nop
ldr r2, =0x80930024
ldr r3, =0x300dc317
str r3, [r2]
mov r0, #1000
ldr r3, =0x60000e18
mov lr, pc
mov pc, r3 ; gosub delay (1msec)
ldmdb fp, {fp, sp, pc} ; return
-Curtis.
On Tue, 2005-06-28 at 17:10, Bob Lees wrote:
> Hi All
>
> Has anyone got dynamic frequency changing working a la cpufreq or
> similar?
>
> I have found Jim's cctl which works from userland, but doesn't adjust
> loops_per_jiffy (it's in userland so doesn't have access). Very
> useful for
> tweaking all sorts of things, thanks Jim.
>
> Also I can't find anywhere in the init code which sets the TS72x0 clk
> registers, etc. Is this only done in Redboot or am I being dense:(
>
> Thanx
>
> Bob
> --
> V +44 (0) 1296 747667
> F +44 (0) 1296 747557
> C +44 (0) 7860 406093
>
> Diamond Consulting Services Ltd
> Dinton
> Aylesbury
> Bucks, HP17 8UG
> England
>
>
> ______________________________________________________________________
> YAHOO! GROUPS LINKS
> 1. Visit your group "ts-7000" on the web.
>
> 2. To unsubscribe from this group, send an email to:
>
>
> 3. Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
>
>
> ______________________________________________________________________
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|