[U-Boot] [PATCH] DaVinci: Improve DaVinci SPI speed.

Ben Gardiner bengardiner at nanometrics.ca
Tue Jun 1 15:51:06 CEST 2010


On Tue, Jun 1, 2010 at 7:36 AM, Delio Brignoli
<dbrignoli at audioscience.com> wrote:
> I have updated this patch based on the comments [1] by Wolfgang Denk and
> removed unused variables.
> [1][http://lists.denx.de/pipermail/u-boot/2010-May/071728.html]
>
> Reduce the number of reads per byte transferred on the BUF register from 2 to 1 and
> take advantage of the TX buffer in the SPI module. On LogicPD OMAP-L138 EVM,
> SPI read throughput goes up from ~0.8Mbyte/s to ~1.3Mbyte/s. Tested with a 2Mbyte image file.
> Remove unused variables in the spi_xfer() function.
>
> Signed-off-by: Delio Brignoli <dbrignoli at audioscience.com>
> Tested-by: Ben Gardiner <bengardiner at nanometrics.ca>

Tested-by: Ben Gardiner <bengardiner at nanometrics.ca>

Applies cleanly to HEAD (9bb3b3d4406c1e388a99f6fb189147d6a06cc2cf) of
git://git.denx.de/u-boot.git and HEAD
(5f16b8551b125f16cd8d58f278cb25b94272fd9f) of
git://arago-project.org/git/people/sekhar/u-boot-omapl1.git .

I am unable to build an SPI-capable u-boot for the da830 or da850 on
git://git.denx.de/u-boot.git; tested with HEAD of
git://arago-project.org/git/people/sekhar/u-boot-omapl1.git -- there
is a noticeable speed improvement in SPI read speed.

-- 
Ben Gardiner
Nanometrics Inc.
+1 (613) 592-6776 x239
http://www.nanometrics.ca


More information about the U-Boot mailing list