]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: keystone-k2g-evm: Add and enable DSP CMA memory pool
authorAndrew F. Davis <afd@ti.com>
Sat, 12 Aug 2017 17:58:10 +0000 (10:58 -0700)
committerSantosh Shilimkar <ssantosh@kernel.org>
Sat, 12 Aug 2017 17:58:10 +0000 (10:58 -0700)
A CMA memory pool reserved memory node is added, and is attached
to the DSP node through the 'memory-region' property on the K2G
EVM board. This area will be used for allocating virtio rings and
buffers. This node allows the DSP Memory Protection and Address
Extension (MPAX) module to be configured properly for the DSP
processor, and matches the values used on the other Keystone 2
boards for software compatibility.

The reserved memory node and the user DSP node are also marked
okay to enable the DSP on the 66AK2G EVM board.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
arch/arm/boot/dts/keystone-k2g-evm.dts

index f47f95d8bf1c2e4e5a7b1fe9b8e50ac81126ea5f..f462f1043531682f2c00dcc9f287dad5df8dd03e 100644 (file)
@@ -25,6 +25,19 @@ memory@800000000 {
                reg = <0x00000008 0x00000000 0x00000000 0x80000000>;
        };
 
+       reserved-memory {
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+
+               dsp_common_memory: dsp-common-memory@81f800000 {
+                       compatible = "shared-dma-pool";
+                       reg = <0x00000008 0x1f800000 0x00000000 0x800000>;
+                       reusable;
+                       status = "okay";
+               };
+       };
+
        vcc3v3_dcin_reg: fixedregulator-vcc3v3-dcin {
                compatible = "regulator-fixed";
                regulator-name = "mmc0_fixed";
@@ -94,3 +107,8 @@ &mmc1 {
        vmmc-supply = <&vcc3v3_dcin_reg>; /* VCC3V3_EMMC is connected to VCC3V3_DCIN */
        status = "okay";
 };
+
+&dsp0 {
+       memory-region = <&dsp_common_memory>;
+       status = "okay";
+};