dma: pl330: Implement device_slave_caps
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 15 Jul 2013 15:53:08 +0000 (17:53 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:46 +0000 (11:44 +0900)
commite951d72f67192ebbeb7baf1ba01fc72e7d4be245
tree1ca1d8c95d795e2d87f8bf4f06f0cdae6802aa3e
parent0ef8598a0f58973e4dc78b28ae0e2a5fe702dff5
dma: pl330: Implement device_slave_caps

Implement the device_slave_caps() callback for the pl330 driver. This allows
dmaengine users like the generic ALSA dmaengine PCM driver to query the
capabilities of the driver. The PL330 supports all buswidths and both
mem-to-dev as well as dev-to-mem transfers. In theory there is no limit on the
number of segments that can be transferred (in practice you'll run out of memory
eventually) and the number of bytes per segment is limited by the size of the
PL330 program buffer. Due to the nature of the PL330 the maximum number of bytes
per segment depends on the burstsize, the driver sets it to the value for a
1-byte burstsize, since it is the smallest.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c