/* Set the Buffer Clear bit in the Configuration register of specific DMA channel. This will stop the descriptor based DMA operation.  */
static void clear_dma_buffer(unsigned int channel)
/* Set the Buffer Clear bit in the Configuration register of specific DMA channel. This will stop the descriptor based DMA operation.  */
static void clear_dma_buffer(unsigned int channel)
{
	dma_ch[channel].regs->cfg |= RESTART;
	SSYNC();
	dma_ch[channel].regs->cfg &= ~RESTART;
}