OSDN Git Service

dmaengine: tegra210-adma: prepare for supporting newer Tegra chips
authorSameer Pujar <spujar@nvidia.com>
Thu, 2 May 2019 12:55:12 +0000 (18:25 +0530)
committerVinod Koul <vkoul@kernel.org>
Sat, 4 May 2019 10:43:41 +0000 (16:13 +0530)
commitded1f3db4cd64bcd8f2b4f89aa66164a142b2895
tree0c6ed81ff35f5333eee93c4cb0716e4d8e58d21d
parent0b515abb6b7eb08e90bdfc01fc8fbdd112c15d81
dmaengine: tegra210-adma: prepare for supporting newer Tegra chips

This is a preparatory patch to add support for Tegra186 and Tegra194 chips.
Following changes are necessary to make driver code generic.
 * chip_data structure is enhanced to have chip specific details and
   following are the additions to the structure
   * Offset addresses for ADMA global and channel registers
   * Offset values for Tx and Rx channel selection
   * Maximum supported Tx and Rx channels
   * Tx and Rx channel request mask
   * ADMA channel register space size
 * Make use of above chip_data to generalise the driver code

Support for Tegra186 and Tegra194 will be added in subsequent patches of
the series.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra210-adma.c