]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00219160 SDMA: replace SDMA LOOP/NORMAL type with enum struct
authorChen Liangjun <b36089@freescale.com>
Thu, 2 Aug 2012 04:34:30 +0000 (12:34 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:36 +0000 (14:12 +0200)
commitcf1aa857b7c83d629839e8b3425f9bccedf21606
tree534c73464fc5a0916f55cc67984986f638834e72
parentb34ad850adef64d0b6335cb67859795cd8451e3c
ENGR00219160 SDMA: replace SDMA LOOP/NORMAL type with enum struct

For common DMA enguine, only slave_sg mode and cyclic mode is support.
However, SDMA can meet more kinds of DMA operation mode requirement. The
origin flags NORMAL and LOOP can no longer satisfy SDMA user's need.

In this patch,
1 Construct a new enum sdma_mode to declare more kind of SDMA
modes. This new variable would replace the old flags.
2 Init sdma_mode to unvalid every time allocating a SDMA channel
to avoid last SDMA channel configuration's impact.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
drivers/dma/imx-sdma.c