0402-ARM-bcm2835-add-interrupt-names-and-apply-correct-ma.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. Add interrupt-names properties to dt and apply the correct
  6. mapping between irq and dma channels.
  7. Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
  8. ---
  9. arch/arm/boot/dts/bcm2708_common.dtsi | 26 ++++++++++++++++++++++++--
  10. 1 file changed, 24 insertions(+), 2 deletions(-)
  11. --- a/arch/arm/boot/dts/bcm2708_common.dtsi
  12. +++ b/arch/arm/boot/dts/bcm2708_common.dtsi
  13. @@ -56,10 +56,32 @@
  14. <1 24>,
  15. <1 25>,
  16. <1 26>,
  17. - <1 27>;
  18. + /* dma channel 11-14 share one irq */
  19. + <1 27>,
  20. + <1 27>,
  21. + <1 27>,
  22. + <1 27>,
  23. + /* unused shared irq for all channels */
  24. + <1 28>;
  25. + interrupt-names = "dma0",
  26. + "dma1",
  27. + "dma2",
  28. + "dma3",
  29. + "dma4",
  30. + "dma5",
  31. + "dma6",
  32. + "dma7",
  33. + "dma8",
  34. + "dma9",
  35. + "dma10",
  36. + "dma11",
  37. + "dma12",
  38. + "dma13",
  39. + "dma14",
  40. + "dma-shared-all";
  41. #dma-cells = <1>;
  42. - brcm,dma-channel-mask = <0x0f34>;
  43. + brcm,dma-channel-mask = <0x7f34>;
  44. };
  45. intc: interrupt-controller@7e00b200 {