提交 727c10e3 编写于 作者: M Marek Vasut 提交者: Mark Brown

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: NMarek Vasut <marex@denx.de>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 204e706f
...@@ -445,7 +445,7 @@ static int mxs_spi_transfer_one(struct spi_master *master, ...@@ -445,7 +445,7 @@ static int mxs_spi_transfer_one(struct spi_master *master,
* DMA only: 2.164808 seconds, 473.0KB/s * DMA only: 2.164808 seconds, 473.0KB/s
* Combined: 1.676276 seconds, 610.9KB/s * Combined: 1.676276 seconds, 610.9KB/s
*/ */
if (t->len <= 256) { if (t->len < 32) {
writel(BM_SSP_CTRL1_DMA_ENABLE, writel(BM_SSP_CTRL1_DMA_ENABLE,
ssp->base + HW_SSP_CTRL1(ssp) + ssp->base + HW_SSP_CTRL1(ssp) +
STMP_OFFSET_REG_CLR); STMP_OFFSET_REG_CLR);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册