dmaengine: ti: k3 PSI-L remote endpoint configuration
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 23 Dec 2019 11:04:48 +0000 (13:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Tue, 21 Jan 2020 05:36:12 +0000 (11:06 +0530)
commit8c6bb62f6b4a24c446511e8f894251946dcc2ef1
tree6838a7e4da29c912d7433c2080c186e4fcaa1788
parent69bafc318560d02dc07e3b52af0d7cf5fc036bfe
dmaengine: ti: k3 PSI-L remote endpoint configuration

In K3 architecture the DMA operates within threads. One end of the thread
is UDMAP, the other is on the peripheral side.

The UDMAP channel configuration depends on the needs of the remote
endpoint and it can be differ from peripheral to peripheral.

This patch adds database for am654 and j721e and small API to fetch the
PSI-L endpoint configuration from the database which should only used by
the DMA driver(s).

Another API is added for native peripherals to give possibility to pass new
configuration for the threads they are using, which is needed to be able to
handle changes caused by different firmware loaded for the peripheral for
example.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20191223110458.30766-9-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/Kconfig
drivers/dma/ti/Makefile
drivers/dma/ti/k3-psil-am654.c [new file with mode: 0644]
drivers/dma/ti/k3-psil-j721e.c [new file with mode: 0644]
drivers/dma/ti/k3-psil-priv.h [new file with mode: 0644]
drivers/dma/ti/k3-psil.c [new file with mode: 0644]
include/linux/dma/k3-psil.h [new file with mode: 0644]