shdmac.c (6b32fafee2bb5fcf0b3d3d04a9762d3a0212089e) | shdmac.c (0cdbee33ea42bfd5f61f824e258a1a0944dd2a27) |
---|---|
1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 225 unchanged lines hidden (view full) --- 234 chcr |= CHCR_DE | shdev->chcr_ie_bit; 235 chcr_write(sh_chan, chcr & ~CHCR_TE); 236} 237 238static void dmae_init(struct sh_dmae_chan *sh_chan) 239{ 240 /* 241 * Default configuration for dual address memory-memory transfer. | 1/* 2 * Renesas SuperH DMA Engine support 3 * 4 * base is drivers/dma/flsdma.c 5 * 6 * Copyright (C) 2011-2012 Guennadi Liakhovetski <g.liakhovetski@gmx.de> 7 * Copyright (C) 2009 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com> 8 * Copyright (C) 2009 Renesas Solutions, Inc. All rights reserved. --- 225 unchanged lines hidden (view full) --- 234 chcr |= CHCR_DE | shdev->chcr_ie_bit; 235 chcr_write(sh_chan, chcr & ~CHCR_TE); 236} 237 238static void dmae_init(struct sh_dmae_chan *sh_chan) 239{ 240 /* 241 * Default configuration for dual address memory-memory transfer. |
242 * 0x400 represents auto-request. | |
243 */ | 242 */ |
244 u32 chcr = DM_INC | SM_INC | 0x400 | log2size_to_chcr(sh_chan, | 243 u32 chcr = DM_INC | SM_INC | RS_AUTO | log2size_to_chcr(sh_chan, |
245 LOG2_DEFAULT_XFER_SIZE); 246 sh_chan->xmit_shift = calc_xmit_shift(sh_chan, chcr); 247 chcr_write(sh_chan, chcr); 248} 249 250static int dmae_set_chcr(struct sh_dmae_chan *sh_chan, u32 val) 251{ 252 /* If DMA is active, cannot set CHCR. TODO: remove this superfluous check */ --- 708 unchanged lines hidden --- | 244 LOG2_DEFAULT_XFER_SIZE); 245 sh_chan->xmit_shift = calc_xmit_shift(sh_chan, chcr); 246 chcr_write(sh_chan, chcr); 247} 248 249static int dmae_set_chcr(struct sh_dmae_chan *sh_chan, u32 val) 250{ 251 /* If DMA is active, cannot set CHCR. TODO: remove this superfluous check */ --- 708 unchanged lines hidden --- |