-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Thomas Abraham
authored and
Kukjin Kim
committed
Dec 23, 2011
1 parent
e1cd845
commit 93ed554
Showing
2 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
* ARM PrimeCell PL330 DMA Controller | ||
|
||
The ARM PrimeCell PL330 DMA controller can move blocks of memory contents | ||
between memory and peripherals or memory to memory. | ||
|
||
Required properties: | ||
- compatible: should include both "arm,pl330" and "arm,primecell". | ||
- reg: physical base address of the controller and length of memory mapped | ||
region. | ||
- interrupts: interrupt number to the cpu. | ||
|
||
Example: | ||
|
||
pdma0: pdma@12680000 { | ||
compatible = "arm,pl330", "arm,primecell"; | ||
reg = <0x12680000 0x1000>; | ||
interrupts = <99>; | ||
}; | ||
|
||
Client drivers (device nodes requiring dma transfers from dev-to-mem or | ||
mem-to-dev) should specify the DMA channel numbers using a two-value pair | ||
as shown below. | ||
|
||
[property name] = <[phandle of the dma controller] [dma request id]>; | ||
|
||
where 'dma request id' is the dma request number which is connected | ||
to the client controller. The 'property name' is recommended to be | ||
of the form <name>-dma-channel. | ||
|
||
Example: tx-dma-channel = <&pdma0 12>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters