summaryrefslogtreecommitdiffstats
path: root/arch/arc/boot/dts/axc003_idu.dtsi
diff options
context:
space:
mode:
authorEugeniy Paltsev2018-07-30 18:26:33 +0200
committerVineet Gupta2018-08-31 21:47:26 +0200
commit678c8110d23c0ac7d69fda558992c31be64e7507 (patch)
treec88b63785213dcbb411be548dac42d4c22dfc70e /arch/arc/boot/dts/axc003_idu.dtsi
parentARC: atomics: unbork atomic_fetch_##op() (diff)
downloadkernel-qcow2-linux-678c8110d23c0ac7d69fda558992c31be64e7507.tar.gz
kernel-qcow2-linux-678c8110d23c0ac7d69fda558992c31be64e7507.tar.xz
kernel-qcow2-linux-678c8110d23c0ac7d69fda558992c31be64e7507.zip
ARC: dma [IOC]: mark DMA devices connected as dma-coherent
Mark DMA devices on AXS103 and HSDK boards connected through IOC port as dma-coherent. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/boot/dts/axc003_idu.dtsi')
-rw-r--r--arch/arc/boot/dts/axc003_idu.dtsi26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arc/boot/dts/axc003_idu.dtsi b/arch/arc/boot/dts/axc003_idu.dtsi
index 69ff4895f2ba..a05bb737ea63 100644
--- a/arch/arc/boot/dts/axc003_idu.dtsi
+++ b/arch/arc/boot/dts/axc003_idu.dtsi
@@ -101,6 +101,32 @@
};
/*
+ * Mark DMA peripherals connected via IOC port as dma-coherent. We do
+ * it via overlay because peripherals defined in axs10x_mb.dtsi are
+ * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
+ * only AXS103 board has HW-coherent DMA peripherals)
+ * We don't need to mark pgu@17000 as dma-coherent because it uses
+ * external DMA buffer located outside of IOC aperture.
+ */
+ axs10x_mb {
+ ethernet@0x18000 {
+ dma-coherent;
+ };
+
+ ehci@0x40000 {
+ dma-coherent;
+ };
+
+ ohci@0x60000 {
+ dma-coherent;
+ };
+
+ mmc@0x15000 {
+ dma-coherent;
+ };
+ };
+
+ /*
* This INTC is actually connected to DW APB GPIO
* which acts as a wire between MB INTC and CPU INTC.
* GPIO INTC is configured in platform init code