[U-Boot-Users] patch: really change frequency

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] patch: really change frequency

Holger Schurig
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




Reply | Threaded
Open this post in threaded view
|

[U-Boot-Users] patch: really change frequency

Wolfgang Denk
In message <200211051239.37711.h.schurig at mn-logistik.de> you wrote:
> 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

Added. Will show up on CVS in a couple of hours.

Please provide a proper  patch  next  time  (complete  path  name  to
patched files - there are 9 files named "start.S" in the U-Boot tree,
CHANGELOG entry).

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
See us @ electronica 2002 in Munich, Nov 12-15, Hall A3, Booth A3.325