The software can enable one or more channels at any time using the following enable sequence.
- Setup channel mode (simple or scatter-gather mode).
- Set the PS_ZDMA.CH_DATA_ATTR and PS_ZDMA.CH_DSCR_ATTR attribute registers.
- Setup DMA mode.
- Simple mode, program the DSCR registers.
- In scatter-gather mode, program the DSCR in memory and program the DSCR start address register.
- Set enable bit in the PS_ZDMA.CH_CTRL2 register. This provides a trigger to the DMA channel.