After the XDMAC selected channel has been programmed, XDMAD_PrepareChannel() is to enable clock and dma peripheral of the DMA, and set Configuration register to set up the transfer type (memory or non-memory peripheral for source and destination) and flow control device.