mxs/spi: Decrement the DMA/PIO border
commit727c10e3e54c4404f6842d246b15fe3703d33556
authorMarek Vasut <marex@denx.de>
Tue, 4 Sep 2012 02:40:17 +0000 (4 04:40 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 5 Sep 2012 23:42:18 +0000 (6 07:42 +0800)
treef672db2d5614a0c14992b63d6d4c423789e2665a
parent204e706fa2ac1a62ff6423039945eb567c6c7efc
mxs/spi: Decrement the DMA/PIO border

This driver checks the length of transfer to be made and based
on this information, either chooses to transfer data via DMA or
PIO. Decrement this border further to gain better performace eg.
during SPI flash writes.

Empiric measurement shows that this gives extra 3kB/s write speed
with a M25P80 flash clocked at 40MHz.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-mxs.c