Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344154
b: refs/heads/master
c: b8b3acb
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin committed Nov 11, 2012
1 parent 4c17e8c commit 09240ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 15753b6586710d788f36cfd5fbb98d0805b390ab
refs/heads/master: b8b3acbe6077b4736f641ec445be8a42cdd1f08b
9 changes: 8 additions & 1 deletion trunk/arch/mips/lantiq/xway/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <lantiq_soc.h>
#include <xway_dma.h>

#define LTQ_DMA_ID 0x08
#define LTQ_DMA_CTRL 0x10
#define LTQ_DMA_CPOLL 0x14
#define LTQ_DMA_CS 0x18
Expand Down Expand Up @@ -214,6 +215,7 @@ ltq_dma_init(struct platform_device *pdev)
{
struct clk *clk;
struct resource *res;
unsigned id;
int i;

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
Expand Down Expand Up @@ -243,7 +245,12 @@ ltq_dma_init(struct platform_device *pdev)
ltq_dma_w32(DMA_POLL | DMA_CLK_DIV4, LTQ_DMA_CPOLL);
ltq_dma_w32_mask(DMA_CHAN_ON, 0, LTQ_DMA_CCTRL);
}
dev_info(&pdev->dev, "init done\n");

id = ltq_dma_r32(LTQ_DMA_ID);
dev_info(&pdev->dev,
"Init done - hw rev: %X, ports: %d, channels: %d\n",
id & 0x1f, (id >> 16) & 0xf, id >> 20);

return 0;
}

Expand Down

0 comments on commit 09240ff

Please sign in to comment.