ARM: dts: msm: Add CMA instead of carveout for secure dsp usecase

Allocate memory from CMA instead of secure carveout for secure
use case.

Change-Id: Ifd8abd86d0757615a0c085be2483abe9b6113cf2
This commit is contained in:
nishant chaubey
2022-02-17 10:53:26 +05:30
parent cd40cae245
commit 9bf11d954f
2 changed files with 11 additions and 4 deletions

View File

@@ -4,10 +4,9 @@
qcom,dma-heaps {
compatible = "qcom,dma-heaps";
qcom,secure_cdsp {
qcom,dma-heap-name = "qcom,secure-cdsp";
qcom,dma-heap-type = <HEAP_TYPE_SECURE_CARVEOUT>;
memory-region = <&cdsp_secure_heap_mem>;
qcom,token = <0x20000000>;
qcom,dma-heap-name = "qcom,cma-secure-cdsp";
qcom,dma-heap-type = <HEAP_TYPE_CMA>;
memory-region = <&cdsp_secure_heap>;
};
qcom,adsp {

View File

@@ -351,6 +351,14 @@
size = <0x0 0x400000>;
};
cdsp_secure_heap: secure_cdsp_region { /* Secure DSP */
compatible = "shared-dma-pool";
alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>;
reusable;
alignment = <0x0 0x400000>;
size = <0x0 0x4800000>;
};
};
&soc {