• Illia Smyrnov's avatar
    spi: omap2-mcspi: Add FIFO buffer support · d33f473d
    Illia Smyrnov authored
    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: default avatarIllia Smyrnov <illia.smyrnov@ti.com>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    d33f473d
spi-omap2-mcspi.c 37.2 KB