dmaengine: imx-sdma: Add multi fifo support
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 14 Apr 2022 16:22:39 +0000 (18:22 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 11:06:20 +0000 (12:06 +0100)
commit824a0a02cd74776461aaa30d792b1ed9111c9aa5
tree94dce22588b75d02997021177c3c81eaa4927f51
parent625d8936c3378016ec8c480a00432034bcb813c9
dmaengine: imx-sdma: Add multi fifo support

The i.MX SDMA engine can read from / write to multiple successive
hardware FIFO registers, referred to as "Multi FIFO support". This is
needed for the micfil driver and certain configurations of the SAI
driver. This patch adds support for this feature.

The number of FIFOs to read from / write to must be communicated from
the client driver to the SDMA engine. For this the struct
dma_slave_config::peripheral_config field is used.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-By: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220414162249.3934543-12-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/dma/imx-sdma.c
include/linux/dma/imx-dma.h