]> Git Repo - linux.git/commitdiff
xtensa: configure shared DMA pool reservation in kc705 DTS
authorMax Filippov <[email protected]>
Fri, 4 Nov 2016 21:44:22 +0000 (14:44 -0700)
committerMax Filippov <[email protected]>
Thu, 15 Dec 2016 18:41:50 +0000 (10:41 -0800)
Add example 64MByte long reservation in the first 512MBytes of physical
memory used as shared DMA pool.

Signed-off-by: Max Filippov <[email protected]>
arch/xtensa/boot/dts/kc705.dts

index b1f4ee8c9a22371ba9abedfcc7d21fb279b585f0..6106bdc097ad2f51a257d7643770b89c8d82ab8e 100644 (file)
                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;
+               };
+       };
 };
This page took 0.057944 seconds and 4 git commands to generate.