diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-06-17 04:20:40 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-21 04:55:57 -0400 |
commit | 5899a723b336da241b492583d7e55f1055f8f3b3 (patch) | |
tree | 3d75b8d88a99e277779325790903a76913a3e2d9 /drivers/dma/shdma.h | |
parent | 090b91805a97f58a7deff0f2b40aad1cc2f1b7e0 (diff) |
dmaengine: shdma: add chcr_write/read function
CHCR register position is not same in all DMAC.
This patch adds new "chcr_offset" to decide it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/dma/shdma.h')
-rw-r--r-- | drivers/dma/shdma.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/shdma.h b/drivers/dma/shdma.h index 6c73b654a5c3..6f064cad6c0f 100644 --- a/drivers/dma/shdma.h +++ b/drivers/dma/shdma.h | |||
@@ -47,6 +47,7 @@ struct sh_dmae_device { | |||
47 | struct list_head node; | 47 | struct list_head node; |
48 | u32 __iomem *chan_reg; | 48 | u32 __iomem *chan_reg; |
49 | u16 __iomem *dmars; | 49 | u16 __iomem *dmars; |
50 | unsigned int chcr_offset; | ||
50 | }; | 51 | }; |
51 | 52 | ||
52 | #define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, common) | 53 | #define to_sh_chan(chan) container_of(chan, struct sh_dmae_chan, common) |