/* Setup sdma interrupt. This function attach sdma_interrupt_handler to system and set the isr for every single channel to default one. */
void sdma_setup_interrupt(void)
/* Setup sdma interrupt. This function attach sdma_interrupt_handler to system and set the isr for every single channel to default one. */
void sdma_setup_interrupt(void)
{
    register_interrupt_routine(IMX_INT_SDMA, sdma_interrupt_handler);
    uint32_t i;
    for (i = 0; i < SDMA_NUM_CHANNELS; i++) {
        sdma_channel_isr_list[i] = sdma_channel_default_isr;
    }
    enable_interrupt(IMX_INT_SDMA, CPU_0, 0);
}