dmaengine: at_xdmac: add support for sama7g5 based at_xdmac
authorEugen Hristev <eugen.hristev@microchip.com>
Fri, 16 Oct 2020 09:38:50 +0000 (12:38 +0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 30 Oct 2020 08:40:27 +0000 (14:10 +0530)
commit2bec35a529b7d3bf28ee0d90ec157560fdf8d4e4
treed1d2160d11c98124a869a0f6f14d1bafae11bf7f
parent60f88c031d94f906f01df1cb155f7a866812a716
dmaengine: at_xdmac: add support for sama7g5 based at_xdmac

SAMA7G5 SoC uses a slightly different variant of the AT_XDMAC.
Added support by a new compatible and a layout struct that copes
to the specific version considering the compatible string.
Only the differences in register map are present in the layout struct.
I reworked the register access for this part that has the differences.
Also the Source/Destination Interface bits are no longer valid for this
variant of the XDMAC. Thus, the layout also has a bool for specifying
whether these bits are required or not.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Link: https://lore.kernel.org/r/20201016093850.290053-1-eugen.hristev@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/at_xdmac.c