dmaengine: mv_xor: add support for a38x command in descriptor mode
authorLior Amsalem <alior@marvell.com>
Tue, 26 May 2015 13:07:34 +0000 (15:07 +0200)
committerVinod Koul <vinod.koul@intel.com>
Wed, 10 Jun 2015 16:48:30 +0000 (22:18 +0530)
commit6f166312c6ea2c010c6425c48506d2bbad491c03
tree0627dad8afc1a66825e80e137c57d89f579e0aa0
parent0951e728ff19d81a7b66ffbea2d449d2c0aa7645
dmaengine: mv_xor: add support for a38x command in descriptor mode

The Marvell Armada 38x SoC introduce new features to the XOR engine,
especially the fact that the engine mode (MEMCPY/XOR/PQ/etc) can be part of
the descriptor and not set through the controller registers.

This new feature allows mixing of different commands (even PQ) on the same
channel/chain without the need to stop the engine to reconfigure the engine
mode.

Refactor the driver to be able to use that new feature on the Armada 38x,
while keeping the old behaviour on the older SoCs.

Signed-off-by: Lior Amsalem <alior@marvell.com>
Reviewed-by: Ofer Heifetz <oferh@marvell.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/devicetree/bindings/dma/mv-xor.txt
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h