summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/dma.c')
-rw-r--r--arch/arm/mach-tegra/dma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/dma.c b/arch/arm/mach-tegra/dma.c
index 7873dc5a3479..c5f32e69316f 100644
--- a/arch/arm/mach-tegra/dma.c
+++ b/arch/arm/mach-tegra/dma.c
@@ -1066,6 +1066,8 @@ static int tegra_dma_suspend(void)
*ctx++ = readl(addr + APB_DMA_CHAN_APB_SEQ);
}
+ /* Disabling clock of dma. */
+ clk_disable(dma_clk);
return 0;
}
@@ -1074,6 +1076,9 @@ static void tegra_dma_resume(void)
u32 *ctx = apb_dma;
int i;
+ /* Enabling clock of dma. */
+ clk_enable(dma_clk);
+
writel(*ctx++, general_dma_addr + APB_DMA_GEN);
writel(*ctx++, general_dma_addr + APB_DMA_CNTRL);
writel(*ctx++, general_dma_addr + APB_DMA_IRQ_MASK);