/* edma_clear_event - clear an outstanding event on the DMA channel Arguments: channel - channel number  */
void edma_clear_event(unsigned channel)
/* edma_clear_event - clear an outstanding event on the DMA channel Arguments: channel - channel number  */
void edma_clear_event(unsigned channel)
{
	unsigned ctlr;
	ctlr = EDMA_CTLR(channel);
	channel = EDMA_CHAN_SLOT(channel);
	if (channel >= edma_info[ctlr]->num_channels)
		return;
	if (channel < 32)
		edma_write(ctlr, EDMA_ECR, 1 << channel);
	else
		edma_write(ctlr, EDMA_ECRH, 1 << (channel - 32));
}