aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-09-03 22:40:17 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-09-05 19:42:18 -0400
commit727c10e3e54c4404f6842d246b15fe3703d33556 (patch)
treef672db2d5614a0c14992b63d6d4c423789e2665a
parent204e706fa2ac1a62ff6423039945eb567c6c7efc (diff)
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>
-rw-r--r--drivers/spi/spi-mxs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index 138c8523dbba..21e1dcad3914 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -445,7 +445,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
445 * DMA only: 2.164808 seconds, 473.0KB/s 445 * DMA only: 2.164808 seconds, 473.0KB/s
446 * Combined: 1.676276 seconds, 610.9KB/s 446 * Combined: 1.676276 seconds, 610.9KB/s
447 */ 447 */
448 if (t->len <= 256) { 448 if (t->len < 32) {
449 writel(BM_SSP_CTRL1_DMA_ENABLE, 449 writel(BM_SSP_CTRL1_DMA_ENABLE,
450 ssp->base + HW_SSP_CTRL1(ssp) + 450 ssp->base + HW_SSP_CTRL1(ssp) +
451 STMP_OFFSET_REG_CLR); 451 STMP_OFFSET_REG_CLR);