dmaengine: ti: k3-udma: Implement support for atype (for virtualization)
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 18 Feb 2020 14:31:26 +0000 (16:31 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Mar 2020 09:14:06 +0000 (14:44 +0530)
commit0ebcf1a274c5467c8ed55d0e01db4b414fe4518d
tree3c10ebf02c1cfacc238ce8e79399d69f1e2b681c
parent8c8b07cb08107abf11842ee7c29ba77ddc6ce568
dmaengine: ti: k3-udma: Implement support for atype (for virtualization)

The DT for virtualized hosts have dma-cells == 2 where the second parameter
is the ATYPE for the channel.

In case of dma-cells == 1 we can configure the ATYPE as 0 (reset value).

The ATYPE defined for j721e are:
0: pointers are physical addresses (no translation)
1: pointers are intermediate addresses (PVU)
2: pointers are virtual addresses (SMMU)

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200218143126.11361-3-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma-glue.c
drivers/dma/ti/k3-udma.c