All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] asynchronous clocking mode for arm920t
Date: Wed, 04 May 2005 13:32:35 +0200	[thread overview]
Message-ID: <4278B2D3.3070705@imc-berlin.de> (raw)

Hi all,

( was: [U-Boot-Users] [PATCH 4/4] add csb637 (at91rm9200) support )

I wrote:

 >> this patch switches the at91rm9200 to synchronous clock mode after
 >> initialization (it would otherwise stay in FastBus mode which is
 >> the _slowest_ clock mode).
 >
 > But I thought FastBus mode is the prefered setting for ARM cpus.

Now I retract the above statement and claim the oposite! ;-)

Anders' is correct. Atmel support told me a year ago
"Linux uses the Asynchronous mode."
With his patch I now get 79.87 BogoMIPS again (without less the 40).

So I helps for AT91RM9200.

But I don't see something similar for my i.MX ARM9 and still this on in 
running as fast as expected...
The reason ist that this setting is done in board/mx1fs2/lowlevel_init.S and 
board/scb9328/lowlevel_init.S.

So I'd say the asynchronous clocking mode is best for all arm920t cpus and 
thus maybe this is the better patch:

Index: u-boot/cpu/arm920t/start.S
===================================================================
RCS file: /cvsroot/u-boot/u-boot/cpu/arm920t/start.S,v
retrieving revision 1.13
diff -u -r1.13 start.S
--- u-boot/cpu/arm920t/start.S  5 Apr 2005 22:30:51 -0000       1.13
+++ u-boot/cpu/arm920t/start.S  4 May 2005 11:27:35 -0000
@@ -246,13 +246,14 @@
         mcr     p15, 0, r0, c8, c7, 0   /* flush v4 TLB */

         /*
-        * disable MMU stuff and caches
+        * disable MMU stuff and caches, switch to Asynchronous Clocking Mode
          */
         mrc     p15, 0, r0, c1, c0, 0
         bic     r0, r0, #0x00002300     @ clear bits 13, 9:8 (--V- --RS)
         bic     r0, r0, #0x00000087     @ clear bits 7, 2:0 (B--- -CAM)
         orr     r0, r0, #0x00000002     @ set bit 2 (A) Align
         orr     r0, r0, #0x00001000     @ set bit 12 (I) I-Cache
+       orr     r0, r0, #0xC0000000     @ set bit 31 (iA) and 30 (nF)
         mcr     p15, 0, r0, c1, c0, 0

Can someone comment on the s3c24x0 cpu?

--
Steven

             reply	other threads:[~2005-05-04 11:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04 11:32 Steven Scholz [this message]
2005-05-04 11:45 ` [U-Boot-Users] asynchronous clocking mode for arm920t Anders Larsen
2005-05-04 11:51   ` Steven Scholz
2005-05-09  8:15     ` Anders Larsen
2005-05-09 10:18       ` Steven Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4278B2D3.3070705@imc-berlin.de \
    --to=steven.scholz@imc-berlin.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.