| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 5/9] MIPS: lantiq: convert dma driver to clkdev api |
| From: | John Crispin <blogic@openwrt.org> |
| Date: | Fri, 17 Feb 2012 11:33:16 +0100 |
| Cc: | linux-mips@linux-mips.org, John Crispin <blogic@openwrt.org> |
| In-reply-to: | <1329474800-20979-1-git-send-email-blogic@openwrt.org> |
| References: | <1329474800-20979-1-git-send-email-blogic@openwrt.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
Update from old pmu_{dis,en}able() to ckldev api.
Signed-off-by: John Crispin <blogic@openwrt.org>
---
arch/mips/lantiq/xway/dma.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c
index 6cf883b..ed04da9 100644
--- a/arch/mips/lantiq/xway/dma.c
+++ b/arch/mips/lantiq/xway/dma.c
@@ -20,6 +20,7 @@
#include <linux/io.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
+#include <linux/clk.h>
#include <lantiq_soc.h>
#include <xway_dma.h>
@@ -216,6 +217,7 @@ EXPORT_SYMBOL_GPL(ltq_dma_init_port);
int __init
ltq_dma_init(void)
{
+ struct clk *clk;
int i;
/* remap dma register range */
@@ -224,7 +226,8 @@ ltq_dma_init(void)
panic("Failed to remap dma memory");
/* power up and reset the dma engine */
- ltq_pmu_enable(PMU_DMA);
+ clk = clk_get_sys("fpi", "dma");
+ clk_enable(clk);
ltq_dma_w32_mask(0, DMA_RESET, LTQ_DMA_CTRL);
/* disable all interrupts */
--
1.7.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 4/9] MIPS: lantiq: convert falcon to clkdev api, John Crispin |
|---|---|
| Next by Date: | [PATCH 6/9] MIPS: lantiq: convert gpio_stp driver to clkdev api, John Crispin |
| Previous by Thread: | [PATCH 4/9] MIPS: lantiq: convert falcon to clkdev api, John Crispin |
| Next by Thread: | [PATCH 6/9] MIPS: lantiq: convert gpio_stp driver to clkdev api, John Crispin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |