[PATCH 1/3] dmaengine: mmp-pdma support
From: zhangfei gao <hidden>
Date: 2012-07-27 02:51:58
On Thu, Jul 26, 2012 at 6:09 PM, Vinod Koul [off-list ref] wrote:
On Thu, 2012-07-26 at 15:02 +0800, zhangfei gao wrote:quoted
On Thu, Jul 26, 2012 at 2:51 PM, Vinod Koul [off-list ref] wrote:quoted
On Fri, 2012-07-20 at 13:46 +0800, Zhangfei Gao wrote:quoted
+struct mmp_dma_platdata { + int chancnt; +}; + +struct mmp_dma_slave_config { + struct dma_slave_config slave_config; + u32 drcmr; +};Why do you need these definitions? What is drcmr used for?Hi, Vinod "drcmr" is request_line, we used to select which channel map to specific peripheral. Is it possible adding request_line to slave_config?Can you use the slave_id.
Good suggestion If passing drcmr does not break original design of slave_id, mmp-pdma just need one config member. While some device (nand) use memcpy method instead of slave_sg. * @slave_id: Slave requester id. Only valid for slave channels. The dma * slave peripheral will have unique id as dma requester which need to be * pass as slave config. Will update with slave_id in v1 version. Thanks Vinod.