/* 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_cc[ctlr]->num_channels)
        return;
    if (channel < 32)
        edma_write(ctlr, EDMA_ECR, BIT(channel));
    else
        edma_write(ctlr, EDMA_ECRH, BIT(channel - 32));
}