aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorRoy Huang <roy.huang@analog.com>2007-10-10 11:31:19 -0400
committerBryan Wu <bryan.wu@analog.com>2007-10-10 11:31:19 -0400
commit1d945e2b3e421f2ce01b2eb260392f888406933f (patch)
tree306716a6ebba2e17af352ece0bad9af34c9a7843 /arch/blackfin
parent518039bc24cbb9ce34665814fe120eac50bedd9a (diff)
Blackfin arch: add set_dma_curr_addr DMA API to support sound driver recording function
Signed-off-by: Roy Huang <roy.huang@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/bfin_dma_5xx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/bfin_dma_5xx.c b/arch/blackfin/kernel/bfin_dma_5xx.c
index 7cf02f02a1db..7e2201908356 100644
--- a/arch/blackfin/kernel/bfin_dma_5xx.c
+++ b/arch/blackfin/kernel/bfin_dma_5xx.c
@@ -345,6 +345,16 @@ void set_dma_sg(unsigned int channel, struct dmasg *sg, int nr_sg)
345} 345}
346EXPORT_SYMBOL(set_dma_sg); 346EXPORT_SYMBOL(set_dma_sg);
347 347
348void set_dma_curr_addr(unsigned int channel, unsigned long addr)
349{
350 BUG_ON(!(dma_ch[channel].chan_status != DMA_CHANNEL_FREE
351 && channel < MAX_BLACKFIN_DMA_CHANNEL));
352
353 dma_ch[channel].regs->curr_addr_ptr = addr;
354 SSYNC();
355}
356EXPORT_SYMBOL(set_dma_curr_addr);
357
348/*------------------------------------------------------------------------------ 358/*------------------------------------------------------------------------------
349 * Get the DMA status of a specific DMA channel from the system. 359 * Get the DMA status of a specific DMA channel from the system.
350 *-----------------------------------------------------------------------------*/ 360 *-----------------------------------------------------------------------------*/