public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andy Pont <andy.pont@sdcsystems.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] omap3_spi performance issues
Date: Wed, 21 Jan 2015 12:06:25 -0000	[thread overview]
Message-ID: <011f01d03572$bdab7a20$39026e60$@pont@sdcsystems.com> (raw)

Hello (and a belated happy new year to all),

I am working on a custom hardware platform where I need to pull the Linux
kernel from a Spansion SPI NOR flash device connected to a 600MHz TI AM3354
processor.  The McSPI is configured to run at its maximum speed with a 48MHz
clock and the datasheet for the S25FL164K states that the throughput for a
read with a 50MHz clock rate should be 6.25MB/s.

Running the command "time sf read ${loadaddr} 0x00200000 ${loadsize}" gives
the following output:

SF: 2900472 bytes @ 0x200000 Read: OK
time: 1.676 seconds

This equates to around 1.7MB/s which I have managed to achieve principally
by adding the OMAP3_MCSPI_CHCONF_TURBO flag to the channel configuration but
also by moving things out of the read loop that only need to be performed
once rather than for each byte read.

Does anyone have any idea as to whether there is more performance that can
be got from this or is that about the limit?

Thanks,

Andy.

                 reply	other threads:[~2015-01-21 12:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='011f01d03572$bdab7a20$39026e60$@pont@sdcsystems.com' \
    --to=andy.pont@sdcsystems.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox