Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
95c4dc7b
Commit
95c4dc7b
authored
May 17, 2016
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/bcm' into for-linus
parents
a365c968
0eef727a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
521 additions
and
131 deletions
+521
-131
Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
+26
-0
arch/arm/boot/dts/bcm283x.dtsi
arch/arm/boot/dts/bcm283x.dtsi
+21
-1
drivers/dma/bcm2835-dma.c
drivers/dma/bcm2835-dma.c
+474
-130
No files found.
Documentation/devicetree/bindings/dma/brcm,bcm2835-dma.txt
View file @
95c4dc7b
...
@@ -12,6 +12,10 @@ Required properties:
...
@@ -12,6 +12,10 @@ Required properties:
- reg: Should contain DMA registers location and length.
- reg: Should contain DMA registers location and length.
- interrupts: Should contain the DMA interrupts associated
- interrupts: Should contain the DMA interrupts associated
to the DMA channels in ascending order.
to the DMA channels in ascending order.
- interrupt-names: Should contain the names of the interrupt
in the form "dmaXX".
Use "dma-shared-all" for the common interrupt line
that is shared by all dma channels.
- #dma-cells: Must be <1>, the cell in the dmas property of the
- #dma-cells: Must be <1>, the cell in the dmas property of the
client device represents the DREQ number.
client device represents the DREQ number.
- brcm,dma-channel-mask: Bit mask representing the channels
- brcm,dma-channel-mask: Bit mask representing the channels
...
@@ -34,13 +38,35 @@ dma: dma@7e007000 {
...
@@ -34,13 +38,35 @@ dma: dma@7e007000 {
<1 24>,
<1 24>,
<1 25>,
<1 25>,
<1 26>,
<1 26>,
/* dma channel 11-14 share one irq */
<1 27>,
<1 27>,
<1 27>,
<1 27>,
<1 27>,
/* unused shared irq for all channels */
<1 28>;
<1 28>;
interrupt-names = "dma0",
"dma1",
"dma2",
"dma3",
"dma4",
"dma5",
"dma6",
"dma7",
"dma8",
"dma9",
"dma10",
"dma11",
"dma12",
"dma13",
"dma14",
"dma-shared-all";
#dma-cells = <1>;
#dma-cells = <1>;
brcm,dma-channel-mask = <0x7f35>;
brcm,dma-channel-mask = <0x7f35>;
};
};
DMA clients connected to the BCM2835 DMA controller must use the format
DMA clients connected to the BCM2835 DMA controller must use the format
described in the dma.txt file, using a two-cell specifier for each channel.
described in the dma.txt file, using a two-cell specifier for each channel.
...
...
arch/arm/boot/dts/bcm283x.dtsi
View file @
95c4dc7b
...
@@ -47,9 +47,29 @@ dma: dma@7e007000 {
...
@@ -47,9 +47,29 @@ dma: dma@7e007000 {
<1 24>,
<1 24>,
<1 25>,
<1 25>,
<1 26>,
<1 26>,
/* dma channel 11-14 share one irq */
<1 27>,
<1 27>,
<1 27>,
<1 27>,
<1 27>,
/* unused shared irq for all channels */
<1 28>;
<1 28>;
interrupt-names = "dma0",
"dma1",
"dma2",
"dma3",
"dma4",
"dma5",
"dma6",
"dma7",
"dma8",
"dma9",
"dma10",
"dma11",
"dma12",
"dma13",
"dma14",
"dma-shared-all";
#dma-cells = <1>;
#dma-cells = <1>;
brcm,dma-channel-mask = <0x7f35>;
brcm,dma-channel-mask = <0x7f35>;
};
};
...
...
drivers/dma/bcm2835-dma.c
View file @
95c4dc7b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment