]> git.baikalelectronics.ru Git - kernel.git/commit
spi: sirf: use DMA if both buffer address and length are aligned
authorBarry Song <21cnbao@gmail.com>
Tue, 6 Aug 2013 06:21:21 +0000 (14:21 +0800)
committerMark Brown <broonie@linaro.org>
Tue, 6 Aug 2013 10:10:01 +0000 (11:10 +0100)
commitc500c95df772a0738be25a40752e1c2095bfc22b
treefb86282f68c4de7b3d7596039e366a9ba5a630e1
parent1860b0e7e43c9dab3ad08c5653b71d3b346adf41
spi: sirf: use DMA if both buffer address and length are aligned

this patch enables DMA support for SiRFSoC SPI driver, if both
buffers and length are aligned with DMA controller's hardware
limitation, use generic SiRF generic dmaengine driver.

for PIO, SiRF SPI controller actually is using rx to trigger rx,
that means if we write any word to tx fifo, we will get a word
from rx fifo. for DMA, we use two different channel for tx and
rx, and issue them both for every transfer.

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-sirf.c