brcm2708: update linux 4.4 patches to latest version
[oweals/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0402-ARM-bcm2835-add-interrupt-names-and-apply-correct-ma.patch
1 From 620065b16a5da22db7fbac1017357e3c2e37e1f6 Mon Sep 17 00:00:00 2001
2 From: Martin Sperl <kernel@martin.sperl.org>
3 Date: Sat, 23 Apr 2016 14:07:03 +0000
4 Subject: [PATCH] ARM: bcm2835: add interrupt-names and apply correct mapping
5
6 Add interrupt-names properties to dt and apply the correct
7 mapping between irq and dma channels.
8
9 Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
10 ---
11  arch/arm/boot/dts/bcm2708_common.dtsi | 26 ++++++++++++++++++++++++--
12  1 file changed, 24 insertions(+), 2 deletions(-)
13
14 --- a/arch/arm/boot/dts/bcm2708_common.dtsi
15 +++ b/arch/arm/boot/dts/bcm2708_common.dtsi
16 @@ -56,10 +56,32 @@
17                                      <1 24>,
18                                      <1 25>,
19                                      <1 26>,
20 -                                    <1 27>;
21 +                                    /* dma channel 11-14 share one irq */
22 +                                    <1 27>,
23 +                                    <1 27>,
24 +                                    <1 27>,
25 +                                    <1 27>,
26 +                                    /* unused shared irq for all channels */
27 +                                    <1 28>;
28 +                       interrupt-names = "dma0",
29 +                                         "dma1",
30 +                                         "dma2",
31 +                                         "dma3",
32 +                                         "dma4",
33 +                                         "dma5",
34 +                                         "dma6",
35 +                                         "dma7",
36 +                                         "dma8",
37 +                                         "dma9",
38 +                                         "dma10",
39 +                                         "dma11",
40 +                                         "dma12",
41 +                                         "dma13",
42 +                                         "dma14",
43 +                                         "dma-shared-all";
44  
45                         #dma-cells = <1>;
46 -                       brcm,dma-channel-mask = <0x0f34>;
47 +                       brcm,dma-channel-mask = <0x7f34>;
48                 };
49  
50                 intc: interrupt-controller@7e00b200 {