]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DMA: PL330: Add device tree support
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 24 Oct 2011 09:43:31 +0000 (11:43 +0200)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 2 Nov 2011 11:51:20 +0000 (20:51 +0900)
commit111d302c302d1c3020aecf57ed6ee9cb688f8c91
treed4f02fe220ca4a6b8bc44541c5e07a41fc9e3176
parent9694fd220dc8e2329c3043230f728661c8b26758
DMA: PL330: Add device tree support

For PL330 dma controllers instantiated from device tree, the channel
lookup is based on phandle of the dma controller and dma request id
specified by the client node. During probe, the private data of each
channel of the controller is set to point to the device node of the
dma controller. The 'chan_id' of the each channel is used as the
dma request id.

Client driver requesting dma channels specify the phandle of the
dma controller and the request id. The pl330 filter function
converts the phandle to the device node pointer and matches that
with channel's private data. If a match is found, the request id
from the client node and the 'chan_id' of the channel is matched.
A channel is found if both the values match.

Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Documentation/devicetree/bindings/dma/arm-pl330.txt [new file with mode: 0644]
drivers/dma/pl330.c