dmaengine: ti: k3-udma: Use soc_device_match() for SoC dependent parameters
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Thu, 10 Sep 2020 12:43:29 +0000 (15:43 +0300)
committerVinod Koul <vkoul@kernel.org>
Fri, 11 Sep 2020 12:16:20 +0000 (17:46 +0530)
commitf9b0366f5e991150f47a6cb42264c64ef94d1be2
tree69716eaf7624c187bb1c92da8aa4ae4186e290a3
parent4c80e9323967125ab8aa7c271ccc7624abc08832
dmaengine: ti: k3-udma: Use soc_device_match() for SoC dependent parameters

Use separate data for SoC dependent parameters. These parameters depends
on the DMA integration (either in HW or in SYSFW), the DMA controller
itself remains compatible with either the am654 or j721e variant.

j7200 have the same DMA as j721e with different number of channels, which
can be queried from HW, but SYSFW defines different rchan_oes_offset
number for j7200 (0x80) compared to j721e (0x400).

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