dmaengine: qcom_hidma: introduce memset support
authorSinan Kaya <okaya@codeaurora.org>
Fri, 30 Jun 2017 02:30:57 +0000 (22:30 -0400)
committerVinod Koul <vinod.koul@intel.com>
Wed, 19 Jul 2017 04:03:21 +0000 (09:33 +0530)
commit5e2db086be4fc77c7715297ffdf929e7a8a55041
treec40fbb2b7072f517e7a527c3b2597f3cf11e8bad
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
dmaengine: qcom_hidma: introduce memset support

HIDMA HW supports memset operation in addition to memcpy.
Since the memset API is present on the kernel now, bring the
memset feature into life.

The descriptor format is the same for both memcpy and memset.
Type of the descriptor is 4 when memset is requested.
The lowest 8 bits of the source DMA argument is used as a
fill pattern.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/qcom/hidma.c
drivers/dma/qcom/hidma.h
drivers/dma/qcom/hidma_ll.c