dma: tegra: add support for channel wise pause
authorLaxman Dewangan <ldewangan@nvidia.com>
Sun, 6 Jan 2013 16:22:02 +0000 (21:52 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 8 Jan 2013 10:53:05 +0000 (02:53 -0800)
commit1b140908c4cda43c653bb080c244d112e619008f
tree4ee653ced926928937db65f029bf19c6d42b7048
parente65f32ca21faed30ce37cd6480271697fe671f74
dma: tegra: add support for channel wise pause

NVIDIA's some SoCs like Tegra114 support the channel wise pause control
inplace of global pause which pauses all DMA channels. When SoCs support
the channel wise pause control then it uses the global pause for clock
gating for register access as well as all DMA channel pause. Hence DMA
registers are not accessible if DMAs are globally paused on these new SoCs.

Add support for channel wise pause feature if SoCs support it.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/tegra20-apb-dma.c