[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1430713734-12175-1-git-send-email-dinguyen@opensource.altera.com>
Date: Sun, 3 May 2015 23:28:54 -0500
From: <dinguyen@...nsource.altera.com>
To: <dan.j.williams@...el.com>
CC: <dinh.linux@...il.com>, <vinod.koul@...el.com>,
<dmaengine@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Dinh Nguyen <dinguyen@...nsource.altera.com>
Subject: [PATCH] dmaengine: pl300: enable the clock to PL330 dma
From: Dinh Nguyen <dinguyen@...nsource.altera.com>
Turn on the clock to the PL330 DMA if there is a clock node provided.
Signed-off-by: Dinh Nguyen <dinguyen@...nsource.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists