]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:09 +0000 (08:35 +0200)
commit965fd85586ff9d25f7225576721b61ea2df6664c
tree534c73464fc5a0916f55cc67984986f638834e72
parent7afd747589c7051159b0ee41cd6eb87f5f51036d
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