diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
commit | 241738bd51cb0efe58e6c570223153e970afe3ae (patch) | |
tree | 05263e1ec3fbd58cc4ba5ee69163612fbb769a4a /arch/mips/lantiq/xway/dma.c | |
parent | bdf20507da11a9a5b32ef04fa09f352828189aef (diff) | |
parent | ce8f0d0607bcad3ec0e8599be80353204427093e (diff) |
Merge branch 'mips-next' of http://dev.phrozen.org/githttp/mips-next into mips-for-linux-next
Diffstat (limited to 'arch/mips/lantiq/xway/dma.c')
-rw-r--r-- | arch/mips/lantiq/xway/dma.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/mips/lantiq/xway/dma.c b/arch/mips/lantiq/xway/dma.c index 0f7228d350d5..6453962ac898 100644 --- a/arch/mips/lantiq/xway/dma.c +++ b/arch/mips/lantiq/xway/dma.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <lantiq_soc.h> | 25 | #include <lantiq_soc.h> |
26 | #include <xway_dma.h> | 26 | #include <xway_dma.h> |
27 | 27 | ||
28 | #define LTQ_DMA_ID 0x08 | ||
28 | #define LTQ_DMA_CTRL 0x10 | 29 | #define LTQ_DMA_CTRL 0x10 |
29 | #define LTQ_DMA_CPOLL 0x14 | 30 | #define LTQ_DMA_CPOLL 0x14 |
30 | #define LTQ_DMA_CS 0x18 | 31 | #define LTQ_DMA_CS 0x18 |
@@ -214,6 +215,7 @@ ltq_dma_init(struct platform_device *pdev) | |||
214 | { | 215 | { |
215 | struct clk *clk; | 216 | struct clk *clk; |
216 | struct resource *res; | 217 | struct resource *res; |
218 | unsigned id; | ||
217 | int i; | 219 | int i; |
218 | 220 | ||
219 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 221 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
@@ -243,7 +245,12 @@ ltq_dma_init(struct platform_device *pdev) | |||
243 | ltq_dma_w32(DMA_POLL | DMA_CLK_DIV4, LTQ_DMA_CPOLL); | 245 | ltq_dma_w32(DMA_POLL | DMA_CLK_DIV4, LTQ_DMA_CPOLL); |
244 | ltq_dma_w32_mask(DMA_CHAN_ON, 0, LTQ_DMA_CCTRL); | 246 | ltq_dma_w32_mask(DMA_CHAN_ON, 0, LTQ_DMA_CCTRL); |
245 | } | 247 | } |
246 | dev_info(&pdev->dev, "init done\n"); | 248 | |
249 | id = ltq_dma_r32(LTQ_DMA_ID); | ||
250 | dev_info(&pdev->dev, | ||
251 | "Init done - hw rev: %X, ports: %d, channels: %d\n", | ||
252 | id & 0x1f, (id >> 16) & 0xf, id >> 20); | ||
253 | |||
247 | return 0; | 254 | return 0; |
248 | } | 255 | } |
249 | 256 | ||