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>
This commit is contained in:
Kuninori Morimoto
2011-06-17 08:20:40 +00:00
committed by Paul Mundt
parent 090b91805a
commit 5899a723b3
3 changed files with 29 additions and 8 deletions

View File

@@ -62,6 +62,7 @@ struct sh_dmae_pdata {
const unsigned int *ts_shift;
int ts_shift_num;
u16 dmaor_init;
unsigned int chcr_offset;
};
/* DMA register */