arc: vdk: Add support of UIO
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Wed, 1 Feb 2017 16:42:53 +0000 (19:42 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Feb 2017 17:37:57 +0000 (09:37 -0800)
ARC VDK for EVSS uses UIO for communication with Embedded Vision
Subsystem.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/boot/dts/vdk_axs10x_mb.dtsi
arch/arc/configs/vdk_hs38_smp_defconfig

index 1953914b9f4fd6f610821afc66694001d27d5f47..f0df59b23e21e473c6f2987593c1f7ccd9cc5958 100644 (file)
                        interrupts = <7>;
                        bus-width = <4>;
                };
+
+               /* Embedded Vision subsystem UIO mappings; only relevant for EV VDK */
+               uio_ev: uio@0xD0000000 {
+                       compatible = "generic-uio";
+                       reg = <0xD0000000 0x2000 0xD1000000 0x2000 0x90000000 0x10000000 0xC0000000 0x10000000>;
+                       reg-names = "ev_gsa", "ev_ctrl", "ev_shared_mem", "ev_code_mem";
+                       interrupts = <23>;
+               };
        };
 };
index f06c7fca500ca08264e0706faa607bd32ecbab70..5c0971787acf4c18066c4bc537f36c1dae37232f 100644 (file)
@@ -82,6 +82,8 @@ CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_DW=y
+CONFIG_UIO=y
+CONFIG_UIO_PDRV_GENIRQ=y
 # CONFIG_IOMMU_SUPPORT is not set
 CONFIG_EXT3_FS=y
 CONFIG_MSDOS_FS=y