Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: dma_slave_config: add support for slave port window

Some slave devices uses address window instead of single register for read
and/or write of data. With the src/dst_port_window_size the address window
can be specified and the DMAengine driver should use this information to
correctly set up the transfer to loop within the provided window.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

authored by

Peter Ujfalusi and committed by
Vinod Koul
54cd2558 0741b819

+8
+8
include/linux/dmaengine.h
··· 336 336 * may or may not be applicable on memory sources. 337 337 * @dst_maxburst: same as src_maxburst but for destination target 338 338 * mutatis mutandis. 339 + * @src_port_window_size: The length of the register area in words the data need 340 + * to be accessed on the device side. It is only used for devices which is using 341 + * an area instead of a single register to receive the data. Typically the DMA 342 + * loops in this area in order to transfer the data. 343 + * @dst_port_window_size: same as src_port_window_size but for the destination 344 + * port. 339 345 * @device_fc: Flow Controller Settings. Only valid for slave channels. Fill 340 346 * with 'true' if peripheral should be flow controller. Direction will be 341 347 * selected at Runtime. ··· 369 363 enum dma_slave_buswidth dst_addr_width; 370 364 u32 src_maxburst; 371 365 u32 dst_maxburst; 366 + u32 src_port_window_size; 367 + u32 dst_port_window_size; 372 368 bool device_fc; 373 369 unsigned int slave_id; 374 370 };