]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f517b27d549429ff58a15956984ed77ccf8783a
tree94dce22588b75d02997021177c3c81eaa4927f51
parent8cf3a876f6b6ed723fa35dba3ae6306f81e26f46
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