]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitde39f5fa09d006561958431779c5a5e5b5b4e0ea
treefb86282f68c4de7b3d7596039e366a9ba5a630e1
parent94b1f0dfa6dd8a3ed303cc7b0034b17e9cc34824
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