]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
spi: omap2-mcspi: Add FIFO buffer support
authorIllia Smyrnov <illia.smyrnov@ti.com>
Mon, 17 Jun 2013 13:31:06 +0000 (16:31 +0300)
committerMark Brown <broonie@linaro.org>
Mon, 17 Jun 2013 16:17:23 +0000 (17:17 +0100)
commitd33f473dcd8e69321f001ba330d648f475b504c9
tree00ff1bce2d3e9b005552269ef6aae3f3b03e9262
parent56cd5c1578135120d73a7054140855728f8cca36
spi: omap2-mcspi: Add FIFO buffer support

The MCSPI controller has a built-in FIFO buffer to unload the DMA or interrupt
handler and improve data throughput. This patch adds FIFO buffer support for SPI
transfers in DMA mode.

For SPI transfers in DMA mode, the largest possible FIFO buffer size will be
calculated and set up. The FIFO won't be used for the SPI transfers in DMA mode
if: calculated FIFO buffer size is less then 2 bytes or the FIFO buffer size
isn't multiple of the SPI word length.

Signed-off-by: Illia Smyrnov <illia.smyrnov@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-omap2-mcspi.c