0003-arc-vdk-Add-support-of-UIO.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From caa0dca3f4913712d1883e9b3b540f0815864ed9 Mon Sep 17 00:00:00 2001
  2. From: Alexey Brodkin <abrodkin@synopsys.com>
  3. Date: Tue, 31 Jan 2017 19:03:56 +0300
  4. Subject: [PATCH 3/3] arc: vdk: Add support of UIO
  5. ARC VDK for EVSS uses UIO for communication with Embedded Vision
  6. Subsystem.
  7. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
  8. ---
  9. arch/arc/boot/dts/vdk_axs10x_mb.dtsi | 8 ++++++++
  10. arch/arc/configs/vdk_hs38_smp_defconfig | 2 ++
  11. 2 files changed, 10 insertions(+)
  12. diff --git a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  13. index 1953914b9f4f..f0df59b23e21 100644
  14. --- a/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  15. +++ b/arch/arc/boot/dts/vdk_axs10x_mb.dtsi
  16. @@ -112,5 +112,13 @@
  17. interrupts = <7>;
  18. bus-width = <4>;
  19. };
  20. +
  21. + /* Embedded Vision subsystem UIO mappings; only relevant for EV VDK */
  22. + uio_ev: uio@0xD0000000 {
  23. + compatible = "generic-uio";
  24. + reg = <0xD0000000 0x2000 0xD1000000 0x2000 0x90000000 0x10000000 0xC0000000 0x10000000>;
  25. + reg-names = "ev_gsa", "ev_ctrl", "ev_shared_mem", "ev_code_mem";
  26. + interrupts = <23>;
  27. + };
  28. };
  29. };
  30. diff --git a/arch/arc/configs/vdk_hs38_smp_defconfig b/arch/arc/configs/vdk_hs38_smp_defconfig
  31. index 85c697a7ef1c..ecd7f42d50c9 100644
  32. --- a/arch/arc/configs/vdk_hs38_smp_defconfig
  33. +++ b/arch/arc/configs/vdk_hs38_smp_defconfig
  34. @@ -83,6 +83,8 @@ CONFIG_MMC=y
  35. CONFIG_MMC_SDHCI=y
  36. CONFIG_MMC_SDHCI_PLTFM=y
  37. CONFIG_MMC_DW=y
  38. +CONFIG_UIO=y
  39. +CONFIG_UIO_PDRV_GENIRQ=y
  40. # CONFIG_IOMMU_SUPPORT is not set
  41. CONFIG_EXT3_FS=y
  42. CONFIG_MSDOS_FS=y
  43. --
  44. 2.7.4