ts-7000
[Top] [All Lists]

Re: [ts-7000] Dynamic frequency changing

To:
Subject: Re: [ts-7000] Dynamic frequency changing
From: Curtis Monroe <>
Date: Tue, 28 Jun 2005 20:04:11 -0400
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/
 


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU