lkml.org 
[lkml]   [2012]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH/RFC] dmaengine: add a slave parameter to __dma_request_channel()
From
Date
On Mon, 2012-03-19 at 17:32 +0100, Guennadi Liakhovetski wrote:
> Sure. In the datasheet we have: to configure a channel for client 1 write
> value X to register A and value Y to register B. That's it. One of them is
> really just a magic slave ID. Another one has several fields with values
> like bus width and transfer size. They could be passed "properly," but
> since those fields also vary between DMAC versions, it is easier to just
> fix the whole register value per client and pass it from the platform
> data. In any case, at least the slave ID is really just a constant, that
> cannot be calculated and has to be passed from platform data.
I think I like the idea of having the these slave IDs coming from
platform map. That way drivers can be agnostic...

--
~Vinod



\
 
 \ /
  Last update: 2012-03-20 08:11    [W:0.221 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site