lkml.org 
[lkml]   [2015]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] dmaengine: pl300: enable the clock to PL330 dma
Date
From: Dinh Nguyen <dinguyen@opensource.altera.com>

Turn on the clock to the PL330 DMA if there is a clock node provided.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
drivers/dma/pl330.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 0e1f567..82eb641 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -2894,6 +2894,10 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)

adev->dev.dma_parms = &pl330->dma_parms;

+ adev->pclk = devm_clk_get(&adev->dev, "apb_pclk");
+ if (adev->pclk)
+ clk_prepare_enable(adev->pclk);
+
/*
* This is the limit for transfers with a buswidth of 1, larger
* buswidths will have larger limits.
--
2.2.1


\
 
 \ /
  Last update: 2015-05-04 07:01    [W:0.049 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site