瀏覽代碼

xtensa: configure shared DMA pool reservation in kc705 DTS

Add example 64MByte long reservation in the first 512MBytes of physical
memory used as shared DMA pool.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 8 年之前
父節點
當前提交
644b213ccc
共有 1 個文件被更改,包括 16 次插入0 次删除
  1. 16 0
      arch/xtensa/boot/dts/kc705.dts

+ 16 - 0
arch/xtensa/boot/dts/kc705.dts

@@ -11,4 +11,20 @@
 		device_type = "memory";
 		reg = <0x00000000 0x38000000>;
 	};
+
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		/* global autoconfigured region for contiguous allocations */
+		linux,cma {
+			compatible = "shared-dma-pool";
+			reusable;
+			size = <0x04000000>;
+			alignment = <0x2000>;
+			alloc-ranges = <0x00000000 0x20000000>;
+			linux,cma-default;
+		};
+	};
 };