spi: imx: support DMA for imx35
commit2dd33f9cec90499029fd49ffae2922c3f9ccad11
authorMartin Kaiser <martin@kaiser.cx>
Wed, 19 Oct 2016 22:42:25 +0000 (20 00:42 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 24 Oct 2016 17:04:23 +0000 (24 18:04 +0100)
tree235bb1f6341311eb8954bfd5b55165c27e6e56bf
parent1001354ca34179f3db924eb66672442a173147dc
spi: imx: support DMA for imx35

Support DMA transfers on imx35 and compatible chipsets (imx31, imx25).

If DMA can be used, set the start mode control (SMC) bit to start the
SPI burst as soon as data is written into the tx fifo. Configure DMA
requests when the fifo is half empty during tx or half full during rx.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c