dmaengine: mv_xor: use SoC type instead of directly the operation mode
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 29 Apr 2016 07:49:06 +0000 (09:49 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 3 May 2016 06:57:47 +0000 (12:27 +0530)
commitdd130c652cb745e82b70cb71a3cf2dd876295e96
treee4e8f99051df614ec14c8143e7e2cde78b0c4f06
parentbc822e1251f908ab2560365d388f36afb9da255a
dmaengine: mv_xor: use SoC type instead of directly the operation mode

Currently the main difference between legacy XOR engine and newer one, is
the way the engine modes are setup (either in the descriptor or through
the controller registers). In order to be able to take into account new
generation of the XOR engine for the ARM64 SoC, we need to identify them
by type, and then depending to the type the engine setup will be
selected.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
drivers/dma/mv_xor.h