Messages in this thread Patch in this message | | | From | <> | Subject | [PATCH] dmaengine: pl300: enable the clock to PL330 dma | Date | Sun, 3 May 2015 23:28:54 -0500 |
| |
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
| |